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. 6
      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" applicationId "com.gmeremit.online.gmeremittance_native"
minSdkVersion 18 minSdkVersion 18
targetSdkVersion 28 targetSdkVersion 28
versionCode 13
versionName "2.1.2"
versionCode 14
versionName "2.1.3"
multiDexEnabled true multiDexEnabled true
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true

6
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 CustomAlertDialog customAlertDialog;
private boolean shouldEnableAppScreenShot = true; private boolean shouldEnableAppScreenShot = true;
private boolean shouldallowDefaultActivityTransition = false;
@Override @Override
protected void onCreate(@Nullable Bundle savedInstanceState) { protected void onCreate(@Nullable Bundle savedInstanceState) {
@ -47,6 +48,7 @@ public class BaseActivity extends AppCompatActivity implements BaseContractInter
if (!shouldEnableAppScreenShot) { if (!shouldEnableAppScreenShot) {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
} }
if (!shouldallowDefaultActivityTransition)
overridePendingTransition(0, 0); overridePendingTransition(0, 0);
} }
@ -88,6 +90,10 @@ public class BaseActivity extends AppCompatActivity implements BaseContractInter
this.shouldEnableAppScreenShot = action; this.shouldEnableAppScreenShot = action;
} }
protected void allowDefaultActivityTransition(boolean action) {
this.shouldallowDefaultActivityTransition = action;
}
@Override @Override
public void showPopUpMessage(String message, CustomAlertDialog.AlertType alertType, CustomAlertDialog.CustomDialogActionListener listener) { public void showPopUpMessage(String message, CustomAlertDialog.AlertType alertType, CustomAlertDialog.CustomDialogActionListener listener) {
try { try {

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 @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
enableActivityToTakeScreenShot(true);
enableActivityToTakeScreenShot(false);
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login_v2); setContentView(R.layout.activity_login_v2);
ButterKnife.bind(this); 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(); e.printStackTrace();
isSafe = false; isSafe = false;
} }
// return isSafe;
return true;
return isSafe;
} }
private boolean hasRootAccess() { private boolean hasRootAccess() {
return false;
// return rootBeer.isRootedWithoutBusyBoxCheck();
return rootBeer.isRootedWithoutBusyBoxCheck();
} }
@Override @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 @Override
public void updateFlagImage(int flagFromCountryCode) { 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() { private void startAntiDebugger() {
boolean isDebuggable = (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)); boolean isDebuggable = (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE));
if (isDebuggable && false)
if (isDebuggable)
antiDebugCheck(); antiDebugCheck();
} }

Loading…
Cancel
Save