mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
Don't unnecessarily stop the ShareActivity in onPause.
1. Due to ShareActivity having noHistory=true, it will already be ditched when you leave the activity. 2. We only need to truly finish() here if we've dropped the underlying media. Fixes #8591
This commit is contained in:
parent
6896f8ea15
commit
3b6429c163
@ -133,11 +133,12 @@ public class ShareActivity extends PassphraseRequiredActionBarActivity
|
|||||||
super.onPause();
|
super.onPause();
|
||||||
if (!isPassingAlongMedia && resolvedExtra != null) {
|
if (!isPassingAlongMedia && resolvedExtra != null) {
|
||||||
PersistentBlobProvider.getInstance(this).delete(this, resolvedExtra);
|
PersistentBlobProvider.getInstance(this).delete(this, resolvedExtra);
|
||||||
}
|
|
||||||
if (!isFinishing()) {
|
if (!isFinishing()) {
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBackPressed() {
|
public void onBackPressed() {
|
||||||
|
Loading…
Reference in New Issue
Block a user