mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-25 09:30:32 +00:00
add downloads menu item to detail fragment
This commit is contained in:
parent
685eebeb56
commit
aee26fcffc
@ -180,6 +180,12 @@ class ActionBarHandler {
|
|||||||
onPlayAudioListener.onActionSelected(selectedVideoStream);
|
onPlayAudioListener.onActionSelected(selectedVideoStream);
|
||||||
}
|
}
|
||||||
return true;
|
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:
|
default:
|
||||||
Log.e(TAG, "Menu Item not known");
|
Log.e(TAG, "Menu Item not known");
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,10 @@
|
|||||||
app:showAsAction="never"
|
app:showAsAction="never"
|
||||||
android:title="@string/open_in_browser" />
|
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"
|
<item android:id="@+id/action_settings"
|
||||||
app:showAsAction="never"
|
app:showAsAction="never"
|
||||||
android:title="@string/settings"/>
|
android:title="@string/settings"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user