Added menu item to go to the media player

This commit is contained in:
daniel oeh 2012-06-20 13:54:35 +02:00
parent 22918164c7
commit ae8a490fdf
3 changed files with 5 additions and 0 deletions

View File

@ -19,4 +19,5 @@
android:showAsAction="ifRoom|collapseActionView"> android:showAsAction="ifRoom|collapseActionView">
</item> </item>
<item android:id="@+id/show_preferences" android:title="@string/settings_label" android:icon="@drawable/action_settings" android:showAsAction="collapseActionView"></item> <item android:id="@+id/show_preferences" android:title="@string/settings_label" android:icon="@drawable/action_settings" android:showAsAction="collapseActionView"></item>
<item android:id="@+id/show_player" android:title="@string/show_player_label" android:icon="@drawable/av_play" android:showAsAction="ifRoom"></item>
</menu> </menu>

View File

@ -48,4 +48,5 @@
<string name="download_error_file_error">File error</string> <string name="download_error_file_error">File error</string>
<string name="download_error_http_data_error">HTTP Data Error</string> <string name="download_error_http_data_error">HTTP Data Error</string>
<string name="download_error_error_unknown">Unknown Error</string> <string name="download_error_error_unknown">Unknown Error</string>
<string name="show_player_label">Show player</string>
</resources> </resources>

View File

@ -75,6 +75,9 @@ public class PodfetcherActivity extends SherlockFragmentActivity {
return true; return true;
case R.id.show_preferences: case R.id.show_preferences:
startActivity(new Intent(this, PreferenceActivity.class)); startActivity(new Intent(this, PreferenceActivity.class));
return true;
case R.id.show_player:
startActivity(new Intent(this, MediaplayerActivity.class));
return true; return true;
default: default:
return super.onOptionsItemSelected(item); return super.onOptionsItemSelected(item);