mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Ensure the browser does not re-use the current tab by removing the
Browser.EXTRA_APPLICATION_ID Extra instead of adding the newer EXTRA_CREATE_NEW_TAB extra. Closes #5397 Fixes #4874 Fixes #5356
This commit is contained in:
parent
2a23b53988
commit
3aa024e553
@ -33,6 +33,7 @@ import android.os.AsyncTask;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Vibrator;
|
||||
import android.provider.Browser;
|
||||
import android.provider.ContactsContract;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.v4.view.WindowCompat;
|
||||
@ -368,6 +369,14 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void startActivity(Intent intent) {
|
||||
if (intent.getStringExtra(Browser.EXTRA_APPLICATION_ID) != null) {
|
||||
intent.removeExtra(Browser.EXTRA_APPLICATION_ID);
|
||||
}
|
||||
super.startActivity(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPrepareOptionsMenu(Menu menu) {
|
||||
MenuInflater inflater = this.getMenuInflater();
|
||||
|
Loading…
Reference in New Issue
Block a user