Fixes an issue with links of toots for opening conversation

This commit is contained in:
stom79 2018-08-27 18:38:49 +02:00
parent 917ca34c4d
commit a413caae9b
1 changed files with 4 additions and 2 deletions

View File

@ -1130,14 +1130,16 @@ public abstract class BaseMainActivity extends BaseActivity
* @param intent Intent - intent related to a notification in top bar
*/
private void mamageNewIntent(Intent intent){
if( intent == null || intent.getExtras() == null )
if( intent == null )
return;
String action = intent.getAction();
String type = intent.getType();
Bundle extras = intent.getExtras();
String userIdIntent;
if( extras.containsKey(INTENT_ACTION) ){
if( extras != null && extras.containsKey(INTENT_ACTION) ){
final NavigationView navigationView = findViewById(R.id.nav_view);
userIdIntent = extras.getString(PREF_KEY_ID); //Id of the account in the intent
if (extras.getInt(INTENT_ACTION) == NOTIFICATION_INTENT){