uae_adhoch_issue_resolve

This commit is contained in:
CPM
2021-03-20 23:04:26 +05:30
parent 4bf53ca895
commit d14b303ef9
9 changed files with 24 additions and 42 deletions
Binary file not shown.
+6 -6
View File
@@ -28,19 +28,19 @@ android {
versionName "4.3"*/ versionName "4.3"*/
//For UAE //For UAE
/* versionCode 25 versionCode 28
versionName "3.7"*/ versionName "4.0"
//For Turkey //For Turkey
/* versionCode 26 /* versionCode 26
versionName "3.8"*/ versionName "3.8"*/
//For KSA //For KSA
/* versionCode 28 /* versionCode 28
versionName "4.0"*/ versionName "4.0"*/
versionCode 27 // aading price facing
versionName "3.8" /* versionCode 27
versionName "3.8"*/
//For SA //For SA
/* versionCode 28 /* versionCode 28
@@ -96,7 +96,7 @@ import cpm.com.gskmtorange.xmlGetterSetter.TableBean;
*/ */
public class GSKOrangeDB extends SQLiteOpenHelper { public class GSKOrangeDB extends SQLiteOpenHelper {
public static final String DATABASE_NAME = "GSK_ORANGE_DB612"; public static final String DATABASE_NAME = "GSK_ORANGE_DB614";
public static final int DATABASE_VERSION = 15; public static final int DATABASE_VERSION = 15;
TableBean tableBean; TableBean tableBean;
private SQLiteDatabase db; private SQLiteDatabase db;
@@ -205,7 +205,6 @@ public class LoginActivity extends AppCompatActivity implements GoogleApiClient.
/* museridView.setText("testuae"); /* museridView.setText("testuae");
mPasswordView.setText("cpm123");*/ mPasswordView.setText("cpm123");*/
//KSA //KSA
/* museridView.setText("Esmail.d"); /* museridView.setText("Esmail.d");
mPasswordView.setText("cpm@123");*/ mPasswordView.setText("cpm@123");*/
@@ -218,8 +217,8 @@ public class LoginActivity extends AppCompatActivity implements GoogleApiClient.
//turkey //turkey
museridView.setText("testmer"); /* museridView.setText("testmer");
mPasswordView.setText("cpm123"); mPasswordView.setText("cpm123");*/
//sa //sa
/* museridView.setText("testsa"); /* museridView.setText("testsa");
mPasswordView.setText("cpm123"); mPasswordView.setText("cpm123");
@@ -390,20 +390,6 @@ public class MainActivity extends AppCompatActivity
AlertDialog alert = builder.create(); AlertDialog alert = builder.create();
alert.show(); alert.show();
/* try {
int i = 1/0;
}
catch (Exception e){
Crashlytics.log(7, CommonString.MESSAGE_EXCEPTION, e.toString());
Crashlytics.logException(e.getCause());
Crashlytics.logException(new Exception("My custom error message"));
}
Integer.parseInt("");
*/
// finish();
} else if (id == R.id.nav_setting) { } else if (id == R.id.nav_setting) {
@@ -147,7 +147,7 @@ public class StoreimageActivity extends AppCompatActivity implements View.OnClic
_UserId = preferences.getString(CommonString.KEY_USERNAME, ""); _UserId = preferences.getString(CommonString.KEY_USERNAME, "");
intime = preferences.getString(CommonString.KEY_STORE_IN_TIME, ""); intime = preferences.getString(CommonString.KEY_STORE_IN_TIME, "");
country_id = preferences.getString(CommonString.KEY_COUNTRY_ID, ""); country_id = preferences.getString(CommonString.KEY_COUNTRY_ID, "");
//store_flag_str = preferences.getString(CommonString.KEY_STORE_FLAG, null); // store_flag_str = preferences.getString(CommonString.KEY_STORE_FLAG, null);
store_flag_str = getIntent().getStringExtra(CommonString.KEY_STORE_FLAG); store_flag_str = getIntent().getStringExtra(CommonString.KEY_STORE_FLAG);
store_id = getIntent().getStringExtra(CommonString.KEY_STORE_ID); store_id = getIntent().getStringExtra(CommonString.KEY_STORE_ID);
@@ -505,7 +505,8 @@ public class StoreimageActivity extends AppCompatActivity implements View.OnClic
String status; String status;
//if (store_flag_str.equals(CommonString.FROM_JCP) || country_id.equalsIgnoreCase("5") || country_id.equalsIgnoreCase(CommonString.COUNTRY_ID_EGYPT +"") //if (store_flag_str.equals(CommonString.FROM_JCP) || country_id.equalsIgnoreCase("5") || country_id.equalsIgnoreCase(CommonString.COUNTRY_ID_EGYPT +"")
// || store_flag_str.equals(CommonString.FROM_ADDITIONAL) || store_flag_str.equals(CommonString.FROM_PHARMA)) { // || store_flag_str.equals(CommonString.FROM_ADDITIONAL) || store_flag_str.equals(CommonString.FROM_PHARMA)) {
if (store_flag_str.equals(CommonString.FROM_JCP) || country_id.equalsIgnoreCase("5") || store_flag_str.equals(CommonString.FROM_PHARMA)|| store_flag_str.equals(CommonString.FROM_DEVIATION)) { if (store_flag_str.equals(CommonString.FROM_JCP) || country_id.equalsIgnoreCase("5")
|| store_flag_str.equals(CommonString.FROM_PHARMA)) {
status = CommonString.KEY_INVALID; status = CommonString.KEY_INVALID;
} else { } else {
status = CommonString.KEY_VALID; status = CommonString.KEY_VALID;
@@ -936,11 +937,16 @@ public class StoreimageActivity extends AppCompatActivity implements View.OnClic
dialog.dismiss(); dialog.dismiss();
//if (store_flag_str.equals(CommonString.FROM_JCP)|| country_id.equalsIgnoreCase("5")|| store_flag_str.equals(CommonString.FROM_ADDITIONAL) //if (store_flag_str.equals(CommonString.FROM_JCP)|| country_id.equalsIgnoreCase("5")|| store_flag_str.equals(CommonString.FROM_ADDITIONAL)
// || country_id.equalsIgnoreCase(CommonString.COUNTRY_ID_EGYPT +"")) { // || country_id.equalsIgnoreCase(CommonString.COUNTRY_ID_EGYPT +"")) {
if (store_flag_str.equals(CommonString.FROM_JCP)|| country_id.equalsIgnoreCase("5")||store_flag_str.equals(CommonString.FROM_DEVIATION)) { //uae adhoch
/* if (store_flag_str.equals(CommonString.FROM_JCP)|| country_id.equalsIgnoreCase("5")
||store_flag_str.equals(CommonString.FROM_DEVIATION)) {*/
if (store_flag_str.equals(CommonString.FROM_JCP)|| country_id.equalsIgnoreCase("5")) {
Intent in = new Intent(StoreimageActivity.this, StoreWisePerformanceActivity.class); Intent in = new Intent(StoreimageActivity.this, StoreWisePerformanceActivity.class);
startActivity(in); startActivity(in);
finish();
overridePendingTransition(R.anim.activity_in, R.anim.activity_out); overridePendingTransition(R.anim.activity_in, R.anim.activity_out);
finish();
} else if (store_flag_str.equals(CommonString.FROM_PHARMA)) { } else if (store_flag_str.equals(CommonString.FROM_PHARMA)) {
Intent in = new Intent(StoreimageActivity.this, PharmaActivity.class); Intent in = new Intent(StoreimageActivity.this, PharmaActivity.class);
startActivity(in); startActivity(in);
@@ -75,6 +75,7 @@ public class StoreWisePerformanceActivity extends AppCompatActivity {
country_id = preferences.getString(CommonString.KEY_COUNTRY_ID, null); country_id = preferences.getString(CommonString.KEY_COUNTRY_ID, null);
store_flag_str = preferences.getString(CommonString.KEY_STORE_FLAG, null); store_flag_str = preferences.getString(CommonString.KEY_STORE_FLAG, null);
toolbar.setTitle(getResources().getString(R.string.title_activity_store_wise_performance)); toolbar.setTitle(getResources().getString(R.string.title_activity_store_wise_performance));
setSupportActionBar(toolbar); setSupportActionBar(toolbar);
@@ -306,6 +306,7 @@ public class UploadImageWithRetrofit {
} }
/*
public File saveBitmapToFileSmaller(File file) { public File saveBitmapToFileSmaller(File file) {
File file2 = file; File file2 = file;
try { try {
@@ -333,7 +334,8 @@ public class UploadImageWithRetrofit {
} }
return file2; return file2;
} }
/* public File saveBitmapToFileSmaller(File file) { */
public File saveBitmapToFileSmaller(File file) {
File file2 = file; File file2 = file;
try { try {
int inWidth = 0; int inWidth = 0;
@@ -377,7 +379,7 @@ public class UploadImageWithRetrofit {
return file; return file;
} }
return file2; return file2;
}*/ }
public void showAlert(final Context context, String str, final boolean flag) { public void showAlert(final Context context, String str, final boolean flag) {
@@ -1,12 +0,0 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.androidbuts.multispinnerfilter;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String LIBRARY_PACKAGE_NAME = "com.androidbuts.multispinnerfilter";
public static final String BUILD_TYPE = "debug";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.0";
}