summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-02-28 23:42:07 +0100
committerArne Schwabe <arne@rfc2549.org>2013-02-28 23:42:07 +0100
commitbce7885ce6124d9b9738fcbe35ed475ed698ff46 (patch)
tree29ffec5247b914546aee93b76f6090dd0bc27c25
parent4a4abd4932f1b39fe8ab1c1063f0211812008761 (diff)
Menu fine tuning
-rw-r--r--AndroidManifest.xml14
-rw-r--r--res/drawable-hdpi/ic_clock.pngbin0 -> 1691 bytes
-rw-r--r--res/drawable-mdpi/ic_clock.pngbin0 -> 1114 bytes
-rw-r--r--res/drawable-xhdpi/ic_clock.pngbin0 -> 2372 bytes
-rw-r--r--res/menu/logmenu.xml2
-rw-r--r--src/de/blinkt/openvpn/VPNProfileList.java8
-rw-r--r--todo.txt3
7 files changed, 15 insertions, 12 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 5eb7d274..f087d8cd 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -44,8 +44,7 @@
android:allowBackup="true"
android:icon="@drawable/icon"
android:label="@string/app"
- android:supportsRtl="true"
- android:uiOptions="splitActionBarWhenNarrow" >
+ android:supportsRtl="true" >
<activity android:name=".AboutFragment" />
<activity
android:name=".VPNPreferences"
@@ -57,7 +56,10 @@
android:launchMode="singleTask" />
<activity android:name=".SendDumpFragment" />
<activity android:name=".FileSelect" />
- <activity android:name=".MainActivity" >
+ <activity
+ android:name=".MainActivity"
+ android:uiOptions="splitActionBarWhenNarrow"
+ tools:ignore="ExportedActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@@ -97,7 +99,8 @@
<activity
android:name=".ConfigConverter"
- android:label="Convert Config File" >
+ android:label="Convert Config File"
+ tools:ignore="ExportedActivity" >
<intent-filter android:label="@string/import_config" >
<action android:name="android.intent.action.VIEW" />
@@ -135,7 +138,8 @@
</activity>
<activity
android:name=".LaunchVPN"
- android:label="@string/vpn_launch_title" >
+ android:label="@string/vpn_launch_title"
+ tools:ignore="ExportedActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
diff --git a/res/drawable-hdpi/ic_clock.png b/res/drawable-hdpi/ic_clock.png
new file mode 100644
index 00000000..22da1b4c
--- /dev/null
+++ b/res/drawable-hdpi/ic_clock.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_clock.png b/res/drawable-mdpi/ic_clock.png
new file mode 100644
index 00000000..9ad15397
--- /dev/null
+++ b/res/drawable-mdpi/ic_clock.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_clock.png b/res/drawable-xhdpi/ic_clock.png
new file mode 100644
index 00000000..a2485f0e
--- /dev/null
+++ b/res/drawable-xhdpi/ic_clock.png
Binary files differ
diff --git a/res/menu/logmenu.xml b/res/menu/logmenu.xml
index ee0f86de..9e79702c 100644
--- a/res/menu/logmenu.xml
+++ b/res/menu/logmenu.xml
@@ -34,7 +34,7 @@
<item
android:id="@+id/toggle_time"
android:alphabeticShortcut="t"
- android:icon="@android:drawable/ic_menu_week"
+ android:icon="@drawable/ic_clock"
android:showAsAction="withText|ifRoom"
android:title="@string/toggle_timestamps"/>
diff --git a/src/de/blinkt/openvpn/VPNProfileList.java b/src/de/blinkt/openvpn/VPNProfileList.java
index 6c10e736..64a6f9dd 100644
--- a/src/de/blinkt/openvpn/VPNProfileList.java
+++ b/src/de/blinkt/openvpn/VPNProfileList.java
@@ -167,17 +167,17 @@ public class VPNProfileList extends ListFragment {
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
- menu.add(0, MENU_ADD_PROFILE, 0, R.string.menu_add_profile)
+ menu.add(0, MENU_ADD_PROFILE, 0 , R.string.menu_add_profile)
.setIcon(android.R.drawable.ic_menu_add)
.setAlphabeticShortcut('a')
.setTitleCondensed(getActivity().getString(R.string.add))
- .setShowAsAction(MenuItem.SHOW_AS_ACTION_WITH_TEXT);
+ .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
- menu.add(0, MENU_IMPORT_PROFILE, 0, R.string.menu_import)
+ menu.add(0, MENU_IMPORT_PROFILE, 0, R.string.menu_import)
.setIcon(R.drawable.ic_menu_archive)
.setAlphabeticShortcut('i')
.setTitleCondensed(getActivity().getString(R.string.menu_import_short))
- .setShowAsAction(MenuItem.SHOW_AS_ACTION_WITH_TEXT );
+ .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT );
}
diff --git a/todo.txt b/todo.txt
index a8da2103..25b59a47 100644
--- a/todo.txt
+++ b/todo.txt
@@ -19,10 +19,9 @@ Ideas:
- implement an encryption for profiles, so no sensitive data has be stored in plain text
- encrypt/decrypt with android private storage key (+no user input required)
-Bugfixes:
- - startpath file explorer
- hibernate when screen off and < 50 kB min
+
Missing configuration options:
Tap support: