Disable FABs on executing task

pull/194/head
M66B 5 years ago
parent 383a1f297e
commit b33fe6f82b

@ -2380,6 +2380,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
args.putLong("id", message.id);
new SimpleTask<ReplyData>() {
@Override
protected void onPreExecute(Bundle args) {
fabReply.setEnabled(false);
}
@Override
protected void onPostExecute(Bundle args) {
fabReply.setEnabled(true);
}
@Override
protected ReplyData onExecute(Context context, Bundle args) {
long id = args.getLong("id");
@ -2620,6 +2630,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
args.putLong("account", account);
new SimpleTask<Boolean>() {
@Override
protected void onPreExecute(Bundle args) {
fabCompose.setEnabled(false);
}
@Override
protected void onPostExecute(Bundle args) {
fabCompose.setEnabled(true);
}
@Override
protected Boolean onExecute(Context context, Bundle args) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);

Loading…
Cancel
Save