-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
LaunchTile.smali
42 lines (25 loc) · 1.06 KB
/
LaunchTile.smali
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.class public Lorg/frap129/spectrum/LaunchTile;
.super Landroid/service/quicksettings/TileService;
# annotations
.annotation build Landroid/annotation/TargetApi;
value = 0x18
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroid/service/quicksettings/TileService;-><init>()V
return-void
.end method
# virtual methods
.method public onClick()V
.locals 3
new-instance v0, Landroid/content/Intent;
const-string v1, "android.intent.action.CLOSE_SYSTEM_DIALOGS"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
new-instance v1, Landroid/content/Intent;
const-class v2, Lorg/frap129/spectrum/MainActivity;
invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
invoke-virtual {p0, v0}, Lorg/frap129/spectrum/LaunchTile;->sendBroadcast(Landroid/content/Intent;)V
invoke-virtual {p0, v1}, Lorg/frap129/spectrum/LaunchTile;->startActivity(Landroid/content/Intent;)V
return-void
.end method