mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-01 12:54:07 +00:00
Subscription changes are relevant for national roaming only
This commit is contained in:
parent
52ceccd12b
commit
8a7061a1eb
1 changed files with 3 additions and 2 deletions
|
@ -231,7 +231,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
|||
}
|
||||
|
||||
private void handleIntent(Intent intent) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(SinkholeService.this);
|
||||
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(SinkholeService.this);
|
||||
|
||||
Command cmd = (Command) intent.getSerializableExtra(EXTRA_COMMAND);
|
||||
String reason = intent.getStringExtra(EXTRA_REASON);
|
||||
|
@ -272,7 +272,8 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
|||
@Override
|
||||
public void onSubscriptionsChanged() {
|
||||
Log.i(TAG, "Subscriptions changed");
|
||||
SinkholeService.reload(null, "Subscriptions changed", SinkholeService.this);
|
||||
if (prefs.getBoolean("national_roaming", false))
|
||||
SinkholeService.reload(null, "Subscriptions changed", SinkholeService.this);
|
||||
}
|
||||
};
|
||||
sm.addOnSubscriptionsChangedListener((SubscriptionManager.OnSubscriptionsChangedListener) subscriptionsChangedListener);
|
||||
|
|
Loading…
Reference in a new issue