Check for suitable internet connection

This commit is contained in:
M66B
2019-03-06 09:51:46 +00:00
parent 928ffe5d0e
commit d896671534
10 changed files with 23 additions and 32 deletions

View File

@@ -157,7 +157,7 @@ public class ViewModelBrowse extends ViewModel {
try {
// Check connectivity
if (!Helper.isConnected(state.context))
if (!Helper.suitableNetwork(state.context, false))
throw new IllegalArgumentException(state.context.getString(R.string.title_no_internet));
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(state.context);