mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
assure that after sharing multiple files sharing state gets properly reset
This commit is contained in:
parent
6af9d59829
commit
2b41c25434
1 changed files with 5 additions and 8 deletions
|
@ -1060,6 +1060,11 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||||
@Override
|
@Override
|
||||||
protected Void doInBackground(Void... voids) {
|
protected Void doInBackground(Void... voids) {
|
||||||
Activity activity = activityRef.get();
|
Activity activity = activityRef.get();
|
||||||
|
if (activity == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
activity.setResult(RESULT_OK);
|
||||||
if (isForwarding(activity)) {
|
if (isForwarding(activity)) {
|
||||||
handleForwarding(activity);
|
handleForwarding(activity);
|
||||||
} else if (isSharing(activity)) {
|
} else if (isSharing(activity)) {
|
||||||
|
@ -1068,14 +1073,6 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onPostExecute(Void aVoid) {
|
|
||||||
super.onPostExecute(aVoid);
|
|
||||||
Activity activity = activityRef.get();
|
|
||||||
if (activity != null) {
|
|
||||||
activity.setResult(RESULT_OK);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void handleForwarding(Activity activity) {
|
private void handleForwarding(Activity activity) {
|
||||||
DcContext dcContext = DcHelper.getContext(activity);
|
DcContext dcContext = DcHelper.getContext(activity);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue