1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 11:02:35 +01:00

add downloads menu item to detail fragment

This commit is contained in:
Christian Schabesberger 2016-05-26 00:11:42 +02:00
parent 685eebeb56
commit aee26fcffc
2 changed files with 10 additions and 0 deletions

View File

@ -180,6 +180,12 @@ class ActionBarHandler {
onPlayAudioListener.onActionSelected(selectedVideoStream);
}
return true;
case R.id.menu_item_downloads: {
Intent intent =
new Intent(activity, org.schabi.newpipe.download.MainActivity.class);
activity.startActivity(intent);
return true;
}
default:
Log.e(TAG, "Menu Item not known");
}

View File

@ -26,6 +26,10 @@
app:showAsAction="never"
android:title="@string/open_in_browser" />
<item android:id="@+id/menu_item_downloads"
app:showAsAction="never"
android:title="@string/downloads" />
<item android:id="@+id/action_settings"
app:showAsAction="never"
android:title="@string/settings"/>