Fixed blinking on check

pull/162/head
M66B 5 years ago
parent be0aceb004
commit ea556de9dc

@ -2466,16 +2466,22 @@ public class FragmentCompose extends FragmentBase {
@Override
protected void onPreExecute(Bundle args) {
busy = true;
Helper.setViewsEnabled(view, false);
getActivity().invalidateOptionsMenu();
int action = args.getInt("action");
if (action != R.id.action_check) {
busy = true;
Helper.setViewsEnabled(view, false);
getActivity().invalidateOptionsMenu();
}
}
@Override
protected void onPostExecute(Bundle args) {
busy = false;
Helper.setViewsEnabled(view, true);
getActivity().invalidateOptionsMenu();
int action = args.getInt("action");
if (action != R.id.action_check) {
busy = false;
Helper.setViewsEnabled(view, true);
getActivity().invalidateOptionsMenu();
}
}
@Override

@ -82,7 +82,6 @@ public class FragmentDialogEx extends DialogFragment {
" request=" + requestCode + " result=" + resultCode);
Log.logExtras(data);
super.onActivityResult(requestCode, resultCode, data);
}
@NonNull

Loading…
Cancel
Save