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 5febb0c commit 293b014Copy full SHA for 293b014
sample/src/main/java/com/xdandroid/sample/misc/BootReceiver.java
@@ -10,10 +10,9 @@ public class BootReceiver extends BroadcastReceiver {
10
11
@Override
12
public void onReceive(Context context, Intent intent) {
13
- context = context.getApplicationContext();
14
- Context c = context;
15
new Thread(() -> {
16
try {
+ Context c = context.getApplicationContext();
17
Intent revokeIntent = new Intent(c, RevokeActivity.class);
18
revokeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
19
c.startActivity(revokeIntent);
0 commit comments