mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-26 09:48:46 +00:00
Improvements
This commit is contained in:
parent
468ac32e12
commit
ae377751cf
1 changed files with 2 additions and 3 deletions
|
@ -360,7 +360,7 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
|
||||||
recreate();
|
recreate();
|
||||||
|
|
||||||
else if ("indicators".equals(name))
|
else if ("indicators".equals(name))
|
||||||
llIndicators.setVisibility(prefs.getBoolean("indicators", false) ? View.VISIBLE : View.GONE);
|
llIndicators.setVisibility(prefs.getBoolean(name, false) ? View.VISIBLE : View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private BroadcastReceiver interactiveStateReceiver = new BroadcastReceiver() {
|
private BroadcastReceiver interactiveStateReceiver = new BroadcastReceiver() {
|
||||||
|
@ -385,12 +385,11 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
|
||||||
|
|
||||||
if (Util.isWifiActive(context))
|
if (Util.isWifiActive(context))
|
||||||
ivNetwork.setImageLevel(1);
|
ivNetwork.setImageLevel(1);
|
||||||
else {
|
else
|
||||||
if (Util.isRoaming(context))
|
if (Util.isRoaming(context))
|
||||||
ivNetwork.setImageLevel(3);
|
ivNetwork.setImageLevel(3);
|
||||||
else
|
else
|
||||||
ivNetwork.setImageLevel(2);
|
ivNetwork.setImageLevel(2);
|
||||||
}
|
|
||||||
ivMetered.setImageLevel(Util.isMetered(context) ? 1 : 0);
|
ivMetered.setImageLevel(Util.isMetered(context) ? 1 : 0);
|
||||||
|
|
||||||
actionView.postInvalidate();
|
actionView.postInvalidate();
|
||||||
|
|
Loading…
Reference in a new issue