We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d7361 commit 57d42faCopy full SHA for 57d42fa
app/src/main/java/com/zegoggles/smssync/activity/MainActivity.java
@@ -277,10 +277,8 @@ public boolean onOptionsItemSelected(MenuItem item) {
277
if (LOCAL_LOGV) {
278
Log.v(TAG, "autoBackupChanged("+event+")");
279
}
280
- final ComponentName componentName = new ComponentName(MainActivity.this, SmsBroadcastReceiver.class);
281
-
282
getPackageManager().setComponentEnabledSetting(
283
- componentName,
+ new ComponentName(this, SmsBroadcastReceiver.class),
284
event.autoBackupEnabled ? COMPONENT_ENABLED_STATE_ENABLED : COMPONENT_ENABLED_STATE_DISABLED,
285
DONT_KILL_APP);
286
0 commit comments