summaryrefslogtreecommitdiff
path: root/android/src/com
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2012-10-21 03:12:10 +0200
committerSebastian Rasmussen <sebras@gmail.com>2012-10-21 03:13:44 +0200
commit05057c03047a2b9650b4ebeb309a4b0a3bdb9f62 (patch)
tree301b84092e9d332322a3540e2e4b40c6f2c75717 /android/src/com
parent8224f1ec9815b63e74ab441d0136476364f58105 (diff)
downloadmupdf-05057c03047a2b9650b4ebeb309a4b0a3bdb9f62.tar.xz
Android: show version number in file picker
Diffstat (limited to 'android/src/com')
-rw-r--r--android/src/com/artifex/mupdf/ChoosePDFActivity.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/android/src/com/artifex/mupdf/ChoosePDFActivity.java b/android/src/com/artifex/mupdf/ChoosePDFActivity.java
index dca4ee4c..1171f55c 100644
--- a/android/src/com/artifex/mupdf/ChoosePDFActivity.java
+++ b/android/src/com/artifex/mupdf/ChoosePDFActivity.java
@@ -10,6 +10,7 @@ import android.app.ListActivity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
+import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
@@ -25,6 +26,12 @@ public class ChoosePDFActivity extends ListActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ Resources res = getResources();
+ String appName = res.getString(R.string.app_name);
+ String version = res.getString(R.string.version);
+ String title = res.getString(R.string.picker_title);
+ setTitle(String.format(title, appName, version));
+
String storageState = Environment.getExternalStorageState();
if (!Environment.MEDIA_MOUNTED.equals(storageState)