Browse Source

Fb link updated

master
Preyea Regmi 5 years ago
parent
commit
6b4894ebc7
  1. 4
      app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/presenter/SplashScreenPresenter.java
  2. 2
      app/src/main/java/com/gmeremit/online/gmeremittance_native/splash_screen/view/SplashScreen.java
  3. 36
      app/src/main/java/com/gmeremit/online/gmeremittance_native/static_pages/view/AboutGME.java

4
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

2
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();
}

36
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<ResolveInfo> 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";
}
}

Loading…
Cancel
Save