93 lines
2.2 KiB
Smali
93 lines
2.2 KiB
Smali
.class public Lme/leolin/shortcutbadger/impl/VivoHomeBadger;
|
|
.super Ljava/lang/Object;
|
|
.source "VivoHomeBadger.java"
|
|
|
|
# interfaces
|
|
.implements Lme/leolin/shortcutbadger/Badger;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 16
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Ljava/util/List;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 29
|
|
new-array v0, v0, [Ljava/lang/String;
|
|
|
|
const-string v1, "com.vivo.launcher"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public a(Landroid/content/Context;Landroid/content/ComponentName;I)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lme/leolin/shortcutbadger/ShortcutBadgeException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 20
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-string v1, "launcher.action.CHANGE_APPLICATION_NOTIFICATION_NUM"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v1, "packageName"
|
|
|
|
.line 21
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string v1, "className"
|
|
|
|
.line 22
|
|
invoke-virtual {p2}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p2, "notificationNum"
|
|
|
|
.line 23
|
|
invoke-virtual {v0, p2, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
.line 24
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
.end method
|