mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-25 01:07:52 +00:00
Yield system 1 sec when interactive state change
This commit is contained in:
parent
b4abb2e727
commit
9c5d534bf8
1 changed files with 7 additions and 0 deletions
|
@ -227,6 +227,13 @@ public class SinkholeService extends VpnService {
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
Log.i(TAG, "Received " + intent);
|
Log.i(TAG, "Received " + intent);
|
||||||
Util.logExtras(TAG, intent);
|
Util.logExtras(TAG, intent);
|
||||||
|
|
||||||
|
// Yield system
|
||||||
|
try {
|
||||||
|
Thread.sleep(1000);
|
||||||
|
} catch (InterruptedException ignored) {
|
||||||
|
}
|
||||||
|
|
||||||
reload(null, SinkholeService.this);
|
reload(null, SinkholeService.this);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue