Browse Source

Thunes fixes for cambodia

master
Preyea Regmi 5 years ago
parent
commit
d7c1e7d3f7
  1. BIN
      .idea/caches/build_file_checksums.ser
  2. 4
      app/build.gradle
  3. 14
      app/src/main/java/com/gmeremit/online/gmeremittance_native/base/BaseActivity.java
  4. 2
      app/src/main/java/com/gmeremit/online/gmeremittance_native/loginV2/view/LoginV2Activity.java
  5. 6
      app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/presenter/SplashScreenPresenter.java
  6. 9
      app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java

BIN
.idea/caches/build_file_checksums.ser

4
app/build.gradle

@ -21,8 +21,8 @@ android {
applicationId "com.gmeremit.online.gmeremittance_native"
minSdkVersion 18
targetSdkVersion 28
versionCode 13
versionName "2.1.2"
versionCode 14
versionName "2.1.3"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true

14
app/src/main/java/com/gmeremit/online/gmeremittance_native/base/BaseActivity.java

@ -40,6 +40,7 @@ public class BaseActivity extends AppCompatActivity implements BaseContractInter
private CustomAlertDialog customAlertDialog;
private boolean shouldEnableAppScreenShot = true;
private boolean shouldallowDefaultActivityTransition = false;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
@ -47,7 +48,8 @@ public class BaseActivity extends AppCompatActivity implements BaseContractInter
if (!shouldEnableAppScreenShot) {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
}
overridePendingTransition(0,0);
if (!shouldallowDefaultActivityTransition)
overridePendingTransition(0, 0);
}
@Override
@ -88,6 +90,10 @@ public class BaseActivity extends AppCompatActivity implements BaseContractInter
this.shouldEnableAppScreenShot = action;
}
protected void allowDefaultActivityTransition(boolean action) {
this.shouldallowDefaultActivityTransition = action;
}
@Override
public void showPopUpMessage(String message, CustomAlertDialog.AlertType alertType, CustomAlertDialog.CustomDialogActionListener listener) {
try {
@ -111,9 +117,9 @@ public class BaseActivity extends AppCompatActivity implements BaseContractInter
@Override
public void showToastMessage(String message) {
Toast toast=Toast.makeText(this, message, Toast.LENGTH_SHORT);
Toast toast = Toast.makeText(this, message, Toast.LENGTH_SHORT);
TextView v = (TextView) toast.getView().findViewById(android.R.id.message);
if( v != null) v.setGravity(Gravity.CENTER);
if (v != null) v.setGravity(Gravity.CENTER);
toast.show();
}
@ -192,6 +198,6 @@ public class BaseActivity extends AppCompatActivity implements BaseContractInter
@Override
public void finish() {
super.finish();
overridePendingTransition(0,0);
overridePendingTransition(0, 0);
}
}

2
app/src/main/java/com/gmeremit/online/gmeremittance_native/loginV2/view/LoginV2Activity.java

@ -124,7 +124,7 @@ public class LoginV2Activity extends BaseActivity implements View.OnClickListene
@Override
protected void onCreate(Bundle savedInstanceState) {
enableActivityToTakeScreenShot(true);
enableActivityToTakeScreenShot(false);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login_v2);
ButterKnife.bind(this);

6
app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/presenter/SplashScreenPresenter.java

@ -48,13 +48,11 @@ public class SplashScreenPresenter extends BasePresenter implements SplashScreen
e.printStackTrace();
isSafe = false;
}
// return isSafe;
return true;
return isSafe;
}
private boolean hasRootAccess() {
return false;
// return rootBeer.isRootedWithoutBusyBoxCheck();
return rootBeer.isRootedWithoutBusyBoxCheck();
}
@Override

9
app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java

@ -279,9 +279,10 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener,
@Override
public void updateFlagImage(int flagFromCountryCode) {
Glide.with(selectedLanguageIcon.getContext())
.load(flagFromCountryCode)
.into(selectedLanguageIcon);
// Glide.with(this)
// .load(flagFromCountryCode)
// .into(selectedLanguageIcon);
selectedLanguageIcon.setImageResource(flagFromCountryCode);
}
/**
@ -428,7 +429,7 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener,
private void startAntiDebugger() {
boolean isDebuggable = (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE));
if (isDebuggable && false)
if (isDebuggable)
antiDebugCheck();
}

Loading…
Cancel
Save