add action for downloads menu item
This commit is contained in:
parent
466ba93750
commit
239ef1c238
3 changed files with 4 additions and 14 deletions
|
|
@ -368,7 +368,8 @@ public class VideoItemListActivity extends AppCompatActivity
|
|||
return true;
|
||||
}
|
||||
case R.id.action_show_downloads: {
|
||||
//todo: implement this
|
||||
Intent intent = new Intent(this, org.schabi.newpipe.download.MainActivity.class);
|
||||
startActivity(intent);
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIte
|
|||
});
|
||||
|
||||
// Intent
|
||||
if (getIntent().getAction().equals(INTENT_DOWNLOAD)) {
|
||||
if (getIntent().getAction() != null && getIntent().getAction().equals(INTENT_DOWNLOAD)) {
|
||||
mPendingUrl = getIntent().getData().toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue