mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-25 09:21:14 +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();
|
||||
|
||||
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() {
|
||||
|
@ -385,12 +385,11 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
|
|||
|
||||
if (Util.isWifiActive(context))
|
||||
ivNetwork.setImageLevel(1);
|
||||
else {
|
||||
else
|
||||
if (Util.isRoaming(context))
|
||||
ivNetwork.setImageLevel(3);
|
||||
else
|
||||
ivNetwork.setImageLevel(2);
|
||||
}
|
||||
ivMetered.setImageLevel(Util.isMetered(context) ? 1 : 0);
|
||||
|
||||
actionView.postInvalidate();
|
||||
|
|
Loading…
Reference in a new issue