Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
Improved method of getting app name, removing app_name string.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Feb 2, 2014
1 parent f07e661 commit d4a2882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AppRater/src/org/codechimp/apprater/AppRater.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ private static void showRateAlertDialog(final Context context, final SharedPrefe
Builder builder = new AlertDialog.Builder(context);
builder.setTitle(String.format(
context.getString(R.string.dialog_title),
getAppName(context)));
getApplicationName(context)));

builder.setMessage(String.format(
context.getString(R.string.rate_message),
getAppName(context)));
getApplicationName(context)));

builder.setPositiveButton(context.getString(R.string.rate),
new DialogInterface.OnClickListener() {
Expand Down Expand Up @@ -169,7 +169,7 @@ private static void commitOrApply(SharedPreferences.Editor editor) {
}
}

private static String getAppName(Context context) {
private static String getApplicationName(Context context) {
PackageManager packageManager = context.getPackageManager();
ApplicationInfo applicationInfo = null;
try {
Expand Down

0 comments on commit d4a2882

Please sign in to comment.