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

@@ -285,7 +285,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
protected Void onExecute(Context context, Bundle args) {
long fid = args.getLong("folder");
if (!Helper.isConnected(context))
if (!Helper.suitableNetwork(context, false))
throw new IllegalArgumentException(context.getString(R.string.title_no_internet));
DB db = DB.getInstance(context);