1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-29 19:34:59 +00:00

Attepmt to fix thread pool exhausted problem

This commit is contained in:
M66B 2017-07-04 21:21:34 +02:00
parent f4c4e0619f
commit ff3812eddb
3 changed files with 4 additions and 4 deletions

View file

@ -161,7 +161,7 @@ public class AdapterAccess extends CursorAdapter {
" >" + addr + (dport > 0 ? "/" + dport : ""));
ViewCompat.setHasTransientState(tvDest, false);
}
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, daddr);
}.execute(daddr);
if (allowed < 0)
tvDest.setTextColor(colorText);

View file

@ -265,7 +265,7 @@ public class AdapterLog extends CursorAdapter {
tvDaddr.setText(">" + name);
ViewCompat.setHasTransientState(tvDaddr, false);
}
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, daddr);
}.execute(daddr);
} else
tvDaddr.setText(dname);
else
@ -299,7 +299,7 @@ public class AdapterLog extends CursorAdapter {
}
ViewCompat.setHasTransientState(tvOrganization, false);
}
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, daddr);
}.execute(daddr);
}
// Show extra data

View file

@ -749,7 +749,7 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> im
rule.hosts = hosts;
notifyDataSetChanged();
}
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}.execute();
return result;
}