mirror of https://github.com/M66B/FairEmail.git
Refactoring
This commit is contained in:
parent
6ee17a7e5c
commit
52fd46202b
|
@ -153,7 +153,9 @@ public class AdapterNavAccount extends RecyclerView.Adapter<AdapterNavAccount.Vi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onExecuted(Bundle args, EntityFolder inbox) {
|
protected void onExecuted(Bundle args, EntityFolder inbox) {
|
||||||
if (inbox != null) {
|
if (inbox == null)
|
||||||
|
return;
|
||||||
|
|
||||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||||
lbm.sendBroadcast(
|
lbm.sendBroadcast(
|
||||||
new Intent(ActivityView.ACTION_VIEW_MESSAGES)
|
new Intent(ActivityView.ACTION_VIEW_MESSAGES)
|
||||||
|
@ -161,13 +163,13 @@ public class AdapterNavAccount extends RecyclerView.Adapter<AdapterNavAccount.Vi
|
||||||
.putExtra("folder", inbox.id)
|
.putExtra("folder", inbox.id)
|
||||||
.putExtra("type", inbox.type));
|
.putExtra("type", inbox.type));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onException(Bundle args, Throwable ex) {
|
protected void onException(Bundle args, Throwable ex) {
|
||||||
// Ignored
|
// Ignored
|
||||||
}
|
}
|
||||||
}.execute(context, owner, args, "account:inbox");
|
}.execute(context, owner, args, "account:inbox");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue