Skip to content

Commit 293b014

Browse files
authored
Update BootReceiver.java
1 parent 5febb0c commit 293b014

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sample/src/main/java/com/xdandroid/sample/misc/BootReceiver.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ public class BootReceiver extends BroadcastReceiver {
1010

1111
@Override
1212
public void onReceive(Context context, Intent intent) {
13-
context = context.getApplicationContext();
14-
Context c = context;
1513
new Thread(() -> {
1614
try {
15+
Context c = context.getApplicationContext();
1716
Intent revokeIntent = new Intent(c, RevokeActivity.class);
1817
revokeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
1918
c.startActivity(revokeIntent);

0 commit comments

Comments
 (0)