Merge pull request #83 from CPM-INDIA-SALES-AND-MARKETING-PVT-LTD/yy_temp
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="Add" />
|
||||||
<ConfirmationsSetting value="0" id="Remove" />
|
<ConfirmationsSetting value="0" id="Remove" />
|
||||||
</component>
|
</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" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|||||||
@@ -268,17 +268,17 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
// There was an error; don't attempt login and focus the first
|
// There was an error; don't attempt login and focus the first
|
||||||
// form field with an error.
|
// form field with an error.
|
||||||
focusView.requestFocus();
|
focusView.requestFocus();
|
||||||
} else if (!isuseridValid(userid)) {
|
|
||||||
Snackbar.make(museridView, getString(R.string.error_incorrect_username), Snackbar.LENGTH_SHORT).show();
|
} else if(!isuseridValid(userid)){
|
||||||
} else if (!isPasswordValid(password)) {
|
Snackbar.make(museridView,getString(R.string.error_incorrect_username),Snackbar.LENGTH_SHORT).show();
|
||||||
Snackbar.make(museridView, getString(R.string.error_incorrect_password), Snackbar.LENGTH_SHORT).show();
|
}else if(!isPasswordValid(password)){
|
||||||
} else {
|
Snackbar.make(museridView,getString(R.string.error_incorrect_password),Snackbar.LENGTH_SHORT).show();
|
||||||
|
}else{
|
||||||
|
|
||||||
// Show a progress spinner, and kick off a background task to
|
// Show a progress spinner, and kick off a background task to
|
||||||
// perform the user login attempt.
|
// perform the user login attempt.
|
||||||
|
|
||||||
new AuthenticateTask().execute();
|
new AuthenticateTask().execute();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,7 +302,7 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
String pw = preferences.getString(CommonString.KEY_PASSWORD, "");
|
String pw = preferences.getString(CommonString.KEY_PASSWORD, "");
|
||||||
|
|
||||||
if (!pw.equals("") && !password.equals(pw)) {
|
if(!pw.equals("") &&!password.equals(pw)){
|
||||||
flag = false;
|
flag = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user