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:
parent
f4c4e0619f
commit
ff3812eddb
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue