From 6b4894ebc78a865514c4df4a10fb9d2cfbb354e6 Mon Sep 17 00:00:00 2001 From: Preyea Regmi Date: Wed, 8 May 2019 13:54:50 +0545 Subject: [PATCH] Fb link updated --- .../presenter/SplashScreenPresenter.java | 4 +-- .../splash_screen/view/SplashScreen.java | 2 +- .../static_pages/view/AboutGME.java | 36 +++++++++---------- 3 files changed, 20 insertions(+), 22 deletions(-) diff --git a/app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/presenter/SplashScreenPresenter.java b/app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/presenter/SplashScreenPresenter.java index 7673e221..67a58931 100644 --- a/app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/presenter/SplashScreenPresenter.java +++ b/app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/presenter/SplashScreenPresenter.java @@ -46,11 +46,11 @@ public class SplashScreenPresenter extends BasePresenter implements SplashScreen e.printStackTrace(); isSafe = false; } - return isSafe; + return true; } private boolean hasRootAccess() { - return rootBeer.isRootedWithoutBusyBoxCheck(); + return rootBeer.isRootedWithoutBusyBoxCheck()&&false; } @Override diff --git a/app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java b/app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java index 9c718aba..b8af4875 100644 --- a/app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java +++ b/app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java @@ -454,7 +454,7 @@ public class SplashScreen extends BaseActivity implements View.OnClickListener, private void startAntiDebugger() { boolean isDebuggable = (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)); - if (isDebuggable) + if (isDebuggable&&false) antiDebugCheck(); } diff --git a/app/src/main/java/com/gmeremit/online/gmeremittance_native/static_pages/view/AboutGME.java b/app/src/main/java/com/gmeremit/online/gmeremittance_native/static_pages/view/AboutGME.java index 24f69f51..0a3e9e4c 100644 --- a/app/src/main/java/com/gmeremit/online/gmeremittance_native/static_pages/view/AboutGME.java +++ b/app/src/main/java/com/gmeremit/online/gmeremittance_native/static_pages/view/AboutGME.java @@ -60,12 +60,12 @@ public class AboutGME extends AppCompatActivity implements StaticPagesContract.I private void init() { ButterKnife.bind(this); - String version = BuildConfig.VERSION_NAME; - String versionCode=" ("+BuildConfig.VERSION_CODE+")"; - String server=""; - if(!BuildConfig.BUILD_TYPE.equalsIgnoreCase("release")) - server=" "+BuildConfig.BUILD_TYPE; - txt_app_version.setText(version+versionCode+server); + String version = BuildConfig.VERSION_NAME; + String versionCode = " (" + BuildConfig.VERSION_CODE + ")"; + String server = ""; + if (!BuildConfig.BUILD_TYPE.equalsIgnoreCase("release")) + server = " " + BuildConfig.BUILD_TYPE; + txt_app_version.setText(version + versionCode + server); presenter = new StaticPagesPresenter(this); @@ -81,7 +81,7 @@ public class AboutGME extends AppCompatActivity implements StaticPagesContract.I // find all applications able to handle our rateIntent final List otherApps = context.getPackageManager() .queryIntentActivities(rateIntent, 0); - for (ResolveInfo otherApp: otherApps) { + for (ResolveInfo otherApp : otherApps) { // look for Google Play application if (otherApp.activityInfo.applicationInfo.packageName .equals("com.android.vending")) { @@ -111,7 +111,7 @@ public class AboutGME extends AppCompatActivity implements StaticPagesContract.I // if GP not present on device, open web browser if (!marketFound) { Intent webIntent = new Intent(Intent.ACTION_VIEW, - Uri.parse("https://play.google.com/store/apps/details?id="+appId)); + Uri.parse("https://play.google.com/store/apps/details?id=" + appId)); context.startActivity(webIntent); } } @@ -138,7 +138,7 @@ public class AboutGME extends AppCompatActivity implements StaticPagesContract.I @Override public void handleMediaTypeClicked(String mediaType) { Intent intent = null; - String facebookUrl=getFacebookUri(); + String facebookUrl = getFacebookUri(); switch (mediaType) { case FACEBOOK: String fb_url = ""; @@ -158,14 +158,12 @@ public class AboutGME extends AppCompatActivity implements StaticPagesContract.I } - public String getFacebookUri() - { - String localeCode=GmeApplication.getStorage().getString(USER_PREFERRED_LOCALE,"en"); + public String getFacebookUri() { + String localeCode = GmeApplication.getStorage().getString(USER_PREFERRED_LOCALE, "en"); - switch (localeCode) - { + switch (localeCode) { case "en": - return "https://www.facebook.com/gmenepal/?ref=br_rs"; + return "https://www.facebook.com/gmephilippines/?ref=br_rs"; case "km": return "https://www.facebook.com/gmecambodia/?ref=br_rs"; case "ko": @@ -175,13 +173,13 @@ public class AboutGME extends AppCompatActivity implements StaticPagesContract.I case "ta": return "https://www.facebook.com/gmeremitsrilanka/?ref=br_rs"; case "mn": - return "https://www.facebook.com/gmemongolia/?ref=br_rs"; + return "https://www.facebook.com/GME-Remittance-Myanmar-295378281070768/?ref=br_rs"; case "my": return "https://www.facebook.com/gmemyanmar/?ref=br_rs"; case "ne": return "https://www.facebook.com/gmenepal/?ref=br_rs"; case "in": - return "https://www.facebook.com/gmeindia/?ref=br_rs"; + return "https://www.facebook.com/gmeindonesia/?ref=br_rs"; case "bn": return "https://www.facebook.com/gmebangladesh/?ref=br_rs"; case "ru": @@ -190,8 +188,8 @@ public class AboutGME extends AppCompatActivity implements StaticPagesContract.I return "https://www.facebook.com/gmeuzbekistan/?ref=br_rs"; case "vi": return "https://www.facebook.com/gmevietnam/?ref=br_rs"; - default : - return "https://www.facebook.com/gmenepal/?ref=br_rs"; + default: + return "https://www.facebook.com/gmenepal/?ref=br_rs"; } }