Skip to content

Commit 57d42fa

Browse files
committed
Inline
1 parent c3d7361 commit 57d42fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/java/com/zegoggles/smssync/activity/MainActivity.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,8 @@ public boolean onOptionsItemSelected(MenuItem item) {
277277
if (LOCAL_LOGV) {
278278
Log.v(TAG, "autoBackupChanged("+event+")");
279279
}
280-
final ComponentName componentName = new ComponentName(MainActivity.this, SmsBroadcastReceiver.class);
281-
282280
getPackageManager().setComponentEnabledSetting(
283-
componentName,
281+
new ComponentName(this, SmsBroadcastReceiver.class),
284282
event.autoBackupEnabled ? COMPONENT_ENABLED_STATE_ENABLED : COMPONENT_ENABLED_STATE_DISABLED,
285283
DONT_KILL_APP);
286284

0 commit comments

Comments
 (0)