add action for downloads menu item

This commit is contained in:
Christian Schabesberger 2016-05-25 22:34:36 +02:00
parent 466ba93750
commit 239ef1c238
3 changed files with 4 additions and 14 deletions

View file

@ -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();
}
}