mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 02:50:56 +01:00
Keep network state
This commit is contained in:
@@ -714,13 +714,13 @@ public class FragmentCompose extends FragmentBase {
|
||||
};
|
||||
|
||||
private void checkInternet() {
|
||||
boolean internet = Helper.suitableNetwork(getContext(), false);
|
||||
boolean suitable = Helper.getNetworkState(getContext()).isSuitable();
|
||||
|
||||
Boolean content = (Boolean) tvNoInternet.getTag();
|
||||
tvNoInternet.setVisibility(!internet && content != null && !content ? View.VISIBLE : View.GONE);
|
||||
tvNoInternet.setVisibility(!suitable && content != null && !content ? View.VISIBLE : View.GONE);
|
||||
|
||||
Boolean downloading = (Boolean) rvAttachment.getTag();
|
||||
tvNoInternetAttachments.setVisibility(!internet && downloading != null && downloading ? View.VISIBLE : View.GONE);
|
||||
tvNoInternetAttachments.setVisibility(!suitable && downloading != null && downloading ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user