diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2012-10-21 03:12:10 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2012-10-21 03:13:44 +0200 |
commit | 05057c03047a2b9650b4ebeb309a4b0a3bdb9f62 (patch) | |
tree | 301b84092e9d332322a3540e2e4b40c6f2c75717 /android | |
parent | 8224f1ec9815b63e74ab441d0136476364f58105 (diff) | |
download | mupdf-05057c03047a2b9650b4ebeb309a4b0a3bdb9f62.tar.xz |
Android: show version number in file picker
Diffstat (limited to 'android')
-rw-r--r-- | android/AndroidManifest.xml | 2 | ||||
-rw-r--r-- | android/res/values/strings.xml | 2 | ||||
-rw-r--r-- | android/src/com/artifex/mupdf/ChoosePDFActivity.java | 7 |
3 files changed, 9 insertions, 2 deletions
diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index d6d4f558..a4daa50c 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -13,7 +13,7 @@ android:debuggable="true" android:hardwareAccelerated="true"> <activity android:name="ChoosePDFActivity" - android:label="@string/picker_title"> + android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml index 5e92e74a..729b5445 100644 --- a/android/res/values/strings.xml +++ b/android/res/values/strings.xml @@ -9,7 +9,7 @@ <string name="search_backwards">Search backwards</string> <string name="search_forwards">Search forwards</string> <string name="search_document">Search document</string> - <string name="picker_title">MuPDF</string> + <string name="picker_title">%1$s %2$s</string> <string name="outline_title">Table of Contents</string> <string name="enter_password">Enter Password</string> <string name="text_not_found">Text not found</string> 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) |