|
|
@ -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"; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|