Added menu item to go to the media player
This commit is contained in:
parent
22918164c7
commit
ae8a490fdf
|
@ -19,4 +19,5 @@
|
|||
android:showAsAction="ifRoom|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>
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
<string name="download_error_file_error">File error</string>
|
||||
<string name="download_error_http_data_error">HTTP Data Error</string>
|
||||
<string name="download_error_error_unknown">Unknown Error</string>
|
||||
<string name="show_player_label">Show player</string>
|
||||
</resources>
|
||||
|
|
|
@ -75,6 +75,9 @@ public class PodfetcherActivity extends SherlockFragmentActivity {
|
|||
return true;
|
||||
case R.id.show_preferences:
|
||||
startActivity(new Intent(this, PreferenceActivity.class));
|
||||
return true;
|
||||
case R.id.show_player:
|
||||
startActivity(new Intent(this, MediaplayerActivity.class));
|
||||
return true;
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
|
|
Loading…
Reference in New Issue