Merge branch 'master' of https://github.com/sagidayan/TheSocialNotework-Android
# Conflicts: # app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/LoginActivity.java # app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/PersonalFragment.java
This commit is contained in:
parent
f7eb10433f
commit
6a37640637
6 changed files with 180 additions and 177 deletions
|
@ -53,7 +53,8 @@ public class GmapFragment extends Fragment implements OnMapReadyCallback {
|
||||||
private final int MAX_ZOOM = 16, MIN_ZOOM = 9;
|
private final int MAX_ZOOM = 16, MIN_ZOOM = 9;
|
||||||
|
|
||||||
|
|
||||||
public GmapFragment() {}
|
public GmapFragment() {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public static GmapFragment newInstance(String param1, String param2) {
|
public static GmapFragment newInstance(String param1, String param2) {
|
||||||
|
@ -159,10 +160,6 @@ public class GmapFragment extends Fragment implements OnMapReadyCallback {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private class getMarkersFromNotes extends AsyncTask<List<Note>, MarkerOptions, List<MarkerOptions>> {
|
private class getMarkersFromNotes extends AsyncTask<List<Note>, MarkerOptions, List<MarkerOptions>> {
|
||||||
GoogleMap mMap;
|
GoogleMap mMap;
|
||||||
// GmapFragment gmap;
|
// GmapFragment gmap;
|
||||||
|
|
|
@ -15,6 +15,7 @@ import android.widget.EditText;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.android.volley.Response;
|
import com.android.volley.Response;
|
||||||
import com.android.volley.VolleyError;
|
import com.android.volley.VolleyError;
|
||||||
|
|
||||||
|
@ -86,6 +87,7 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void attemptLogin() {
|
private void attemptLogin() {
|
||||||
Utils.showLoadingDialog(this, "Connecting", "Authenticating data");
|
Utils.showLoadingDialog(this, "Connecting", "Authenticating data");
|
||||||
mPasswordView.setError(null);
|
mPasswordView.setError(null);
|
||||||
|
|
|
@ -3,7 +3,9 @@ package com.android_app.matan.ara.sagi.thesocialnotework;
|
||||||
/**
|
/**
|
||||||
* Created by aran on 5/26/16.
|
* Created by aran on 5/26/16.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import com.android.volley.toolbox.ImageLoader.ImageCache;
|
import com.android.volley.toolbox.ImageLoader.ImageCache;
|
||||||
|
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.support.v4.util.LruCache;
|
import android.support.v4.util.LruCache;
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,12 @@ import android.widget.Button;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.android.volley.Response;
|
import com.android.volley.Response;
|
||||||
import com.android.volley.VolleyError;
|
import com.android.volley.VolleyError;
|
||||||
|
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
@ -58,9 +61,11 @@ public class RegisterActivity extends AppCompatActivity implements View.OnClickL
|
||||||
private boolean isUsernameValid(String username) {
|
private boolean isUsernameValid(String username) {
|
||||||
return !TextUtils.isEmpty(username) && username.length() > 0;
|
return !TextUtils.isEmpty(username) && username.length() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isPasswordValid(String password) {
|
private boolean isPasswordValid(String password) {
|
||||||
return !TextUtils.isEmpty(password) && password.length() > 3;
|
return !TextUtils.isEmpty(password) && password.length() > 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isEmailValid(String email) {
|
private boolean isEmailValid(String email) {
|
||||||
if (TextUtils.isEmpty(email))
|
if (TextUtils.isEmpty(email))
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -30,8 +30,6 @@ public class Utils {
|
||||||
public static ProgressDialog progress;
|
public static ProgressDialog progress;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static Bitmap getBitmapFromURL(String imageUrl) {
|
public static Bitmap getBitmapFromURL(String imageUrl) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -74,7 +72,6 @@ public class Utils {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static Note getNoteFromJsonObj(JSONObject noteObject, Date time) throws JSONException {
|
public static Note getNoteFromJsonObj(JSONObject noteObject, Date time) throws JSONException {
|
||||||
// List<Note> listOfNotes = new ArrayList<>();
|
// List<Note> listOfNotes = new ArrayList<>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue