You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
1.8 KiB
85 lines
1.8 KiB
.class public abstract Lcom/viatech/a/a; |
|
.super Landroid/content/BroadcastReceiver; |
|
.source "BaseReceiver.java" |
|
|
|
|
|
# instance fields |
|
.field protected a:Landroid/content/IntentFilter; |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 5 |
|
|
|
.prologue |
|
.line 16 |
|
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V |
|
|
|
.line 17 |
|
new-instance v0, Landroid/content/IntentFilter; |
|
|
|
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V |
|
|
|
iput-object v0, p0, Lcom/viatech/a/a;->a:Landroid/content/IntentFilter; |
|
|
|
.line 18 |
|
invoke-virtual {p0}, Lcom/viatech/a/a;->a()[Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
array-length v2, v1 |
|
|
|
const/4 v0, 0x0 |
|
|
|
:goto_0 |
|
if-ge v0, v2, :cond_0 |
|
|
|
aget-object v3, v1, v0 |
|
|
|
.line 19 |
|
iget-object v4, p0, Lcom/viatech/a/a;->a:Landroid/content/IntentFilter; |
|
|
|
invoke-virtual {v4, v3}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V |
|
|
|
.line 18 |
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
.line 20 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public a(Landroid/content/Context;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 23 |
|
iget-object v0, p0, Lcom/viatech/a/a;->a:Landroid/content/IntentFilter; |
|
|
|
invoke-virtual {p1, p0, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent; |
|
|
|
.line 24 |
|
return-void |
|
.end method |
|
|
|
.method abstract a()[Ljava/lang/String; |
|
.end method |
|
|
|
.method public b(Landroid/content/Context;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 27 |
|
if-eqz p1, :cond_0 |
|
|
|
.line 28 |
|
invoke-virtual {p1, p0}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V |
|
|
|
.line 29 |
|
:cond_0 |
|
return-void |
|
.end method
|
|
|