mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-02 12:33:43 +00:00
Disable FABs on executing task
This commit is contained in:
parent
383a1f297e
commit
b33fe6f82b
1 changed files with 20 additions and 0 deletions
|
@ -2380,6 +2380,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
args.putLong("id", message.id);
|
args.putLong("id", message.id);
|
||||||
|
|
||||||
new SimpleTask<ReplyData>() {
|
new SimpleTask<ReplyData>() {
|
||||||
|
@Override
|
||||||
|
protected void onPreExecute(Bundle args) {
|
||||||
|
fabReply.setEnabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onPostExecute(Bundle args) {
|
||||||
|
fabReply.setEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ReplyData onExecute(Context context, Bundle args) {
|
protected ReplyData onExecute(Context context, Bundle args) {
|
||||||
long id = args.getLong("id");
|
long id = args.getLong("id");
|
||||||
|
@ -2620,6 +2630,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
args.putLong("account", account);
|
args.putLong("account", account);
|
||||||
|
|
||||||
new SimpleTask<Boolean>() {
|
new SimpleTask<Boolean>() {
|
||||||
|
@Override
|
||||||
|
protected void onPreExecute(Bundle args) {
|
||||||
|
fabCompose.setEnabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onPostExecute(Bundle args) {
|
||||||
|
fabCompose.setEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Boolean onExecute(Context context, Bundle args) {
|
protected Boolean onExecute(Context context, Bundle args) {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
|
|
Loading…
Reference in a new issue