mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 02:21:37 +01:00
Keep network state
This commit is contained in:
@@ -157,7 +157,7 @@ public class ViewModelBrowse extends ViewModel {
|
||||
|
||||
try {
|
||||
// Check connectivity
|
||||
if (!Helper.suitableNetwork(state.context, false))
|
||||
if (!Helper.getNetworkState(state.context).isSuitable())
|
||||
throw new IllegalArgumentException(state.context.getString(R.string.title_no_internet));
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(state.context);
|
||||
|
||||
Reference in New Issue
Block a user