Navigation voice changer app for Android
修订版 | 8991b813df856fd33c5533109a341ad783bdcf8a (tree) |
---|---|
时间 | 2013-08-11 00:30:11 |
作者 | HMML <hmml3939@gmai...> |
Commiter | HMML |
Fix crash on 4.0.
@@ -1,8 +1,8 @@ | ||
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | package="jp.nekoteki.android.navivoicechanger" |
4 | - android:versionCode="1" | |
5 | - android:versionName="1.0" > | |
4 | + android:versionCode="2" | |
5 | + android:versionName="1.0.1" > | |
6 | 6 | |
7 | 7 | <uses-sdk |
8 | 8 | android:minSdkVersion="14" |
@@ -11,4 +11,4 @@ | ||
11 | 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt |
12 | 12 | |
13 | 13 | # Project target. |
14 | -target=android-17 | |
14 | +target=android-18 |
@@ -1,4 +1,4 @@ | ||
1 | 1 | <menu xmlns:android="http://schemas.android.com/apk/res/android" > |
2 | - <item android:id="@+id/menu_go_install" android:showAsAction="always" android:icon="@android:drawable/ic_menu_add" android:onClick="goInstallListFromMenu" android:title="@string/title_activity_install_list"></item> | |
2 | + <item android:id="@+id/menu_go_install" android:showAsAction="always" android:icon="@android:drawable/ic_menu_add" android:title="@string/title_activity_install_list"></item> | |
3 | 3 | |
4 | 4 | </menu> |
@@ -1,4 +1,4 @@ | ||
1 | 1 | <menu xmlns:android="http://schemas.android.com/apk/res/android" > |
2 | - <item android:id="@+id/menu_go_download" android:showAsAction="always" android:icon="@android:drawable/ic_menu_search" android:title="@string/title_activity_download" android:onClick="goDownloadActivityFromMenu"></item> | |
2 | + <item android:id="@+id/menu_go_download" android:showAsAction="always" android:icon="@android:drawable/ic_menu_search" android:title="@string/title_activity_download"></item> | |
3 | 3 | |
4 | 4 | </menu> |
@@ -380,6 +380,9 @@ public class DownloadActivity extends Activity { | ||
380 | 380 | // |
381 | 381 | NavUtils.navigateUpFromSameTask(this); |
382 | 382 | return true; |
383 | + case R.id.menu_go_install: | |
384 | + startActivity(new Intent(DownloadActivity.this, InstallListActivity.class)); | |
385 | + return true; | |
383 | 386 | } |
384 | 387 | return super.onOptionsItemSelected(item); |
385 | 388 | } |
@@ -393,10 +396,6 @@ public class DownloadActivity extends Activity { | ||
393 | 396 | } |
394 | 397 | } |
395 | 398 | |
396 | - public void goInstallListFromMenu(MenuItem item) { | |
397 | - startActivity(new Intent(DownloadActivity.this, InstallListActivity.class)); | |
398 | - } | |
399 | - | |
400 | 399 | public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo info) { |
401 | 400 | super.onCreateContextMenu(menu, view, info); |
402 | 401 | AdapterContextMenuInfo ainfo = (AdapterContextMenuInfo) info; |
@@ -165,6 +165,8 @@ public class InstallListActivity extends Activity { | ||
165 | 165 | // |
166 | 166 | NavUtils.navigateUpFromSameTask(this); |
167 | 167 | return true; |
168 | + case R.id.menu_go_download: | |
169 | + startActivity(new Intent(InstallListActivity.this, DownloadActivity.class)); | |
168 | 170 | } |
169 | 171 | return super.onOptionsItemSelected(item); |
170 | 172 | } |
@@ -208,8 +210,4 @@ public class InstallListActivity extends Activity { | ||
208 | 210 | } |
209 | 211 | return true; |
210 | 212 | } |
211 | - | |
212 | - public void goDownloadActivityFromMenu(MenuItem item) { | |
213 | - startActivity(new Intent(InstallListActivity.this, DownloadActivity.class)); | |
214 | - } | |
215 | 213 | } |