Skip to content

Commit

Permalink
add settings button in downloads activity
Browse files Browse the repository at this point in the history
  • Loading branch information
ShareASmile authored Nov 13, 2023
1 parent 021ae3e commit 73fb7c1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import org.schabi.newpipelegacy.R;
import org.schabi.newpipelegacy.util.AndroidTvUtils;
import org.schabi.newpipelegacy.util.NavigationHelper;
import org.schabi.newpipelegacy.util.ThemeHelper;
import org.schabi.newpipelegacy.views.FocusOverlayView;

Expand Down Expand Up @@ -87,6 +88,9 @@ public boolean onOptionsItemSelected(final MenuItem item) {
case android.R.id.home:
onBackPressed();
return true;
case R.id.action_settings:
NavigationHelper.openSettings(this);
return true;
default:
return super.onOptionsItemSelected(item);
}
Expand Down

0 comments on commit 73fb7c1

Please sign in to comment.