T2P upload data newss
This commit is contained in:
Generated
+1
-1
@@ -41,7 +41,7 @@
|
||||
<ConfirmationsSetting value="0" id="Add" />
|
||||
<ConfirmationsSetting value="0" id="Remove" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
||||
@@ -268,9 +268,9 @@ public class LoginActivity extends AppCompatActivity {
|
||||
// There was an error; don't attempt login and focus the first
|
||||
// form field with an error.
|
||||
focusView.requestFocus();
|
||||
} else if(isuseridValid(userid)){
|
||||
} else if(!isuseridValid(userid)){
|
||||
Snackbar.make(museridView,getString(R.string.error_incorrect_username),Snackbar.LENGTH_SHORT).show();
|
||||
}else if(isPasswordValid(password)){
|
||||
}else if(!isPasswordValid(password)){
|
||||
Snackbar.make(museridView,getString(R.string.error_incorrect_password),Snackbar.LENGTH_SHORT).show();
|
||||
}else{
|
||||
|
||||
@@ -302,7 +302,7 @@ public class LoginActivity extends AppCompatActivity {
|
||||
|
||||
String pw = preferences.getString(CommonString.KEY_PASSWORD, "");
|
||||
|
||||
if(!password.equals(pw)){
|
||||
if(!pw.equals("") &&!password.equals(pw)){
|
||||
flag = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user