Check send at result code

pull/162/head
M66B 5 years ago
parent 7e250f2de0
commit 4c57d7f744

@ -3685,10 +3685,7 @@ public class FragmentCompose extends FragmentBase {
public void onActivityResult(int requestCode, int resultCode, @Nullable Intent intent) {
super.onActivityResult(requestCode, resultCode, intent);
Context context = getContext();
if (context == null)
return;
if (resultCode == RESULT_OK && intent != null) {
Bundle data = intent.getBundleExtra("args");
long id = data.getLong("id");
long duration = data.getLong("duration");
@ -3717,6 +3714,7 @@ public class FragmentCompose extends FragmentBase {
}.execute(this, args, "compose:snooze");
}
}
}
private class DraftData {
private EntityMessage draft;

@ -76,6 +76,15 @@ public class FragmentDialogEx extends DialogFragment {
Log.i("Stop " + this);
}
@Override
public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
Log.i("Result class=" + this.getClass().getSimpleName() +
" request=" + requestCode + " result=" + resultCode);
Log.logExtras(data);
super.onActivityResult(requestCode, resultCode, data);
}
@NonNull
@Override
public LifecycleOwner getViewLifecycleOwner() {

Loading…
Cancel
Save