127 lines
3.1 KiB
Smali
127 lines
3.1 KiB
Smali
.class Lcom/moji/tool/fps/Foreground$1;
|
|
.super Ljava/lang/Object;
|
|
.source "Foreground.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/tool/fps/Foreground;->onActivityPaused(Landroid/app/Activity;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/tool/fps/Foreground;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/tool/fps/Foreground;)V
|
|
.locals 0
|
|
|
|
.line 161
|
|
iput-object p1, p0, Lcom/moji/tool/fps/Foreground$1;->a:Lcom/moji/tool/fps/Foreground;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 4
|
|
|
|
.line 164
|
|
iget-object v0, p0, Lcom/moji/tool/fps/Foreground$1;->a:Lcom/moji/tool/fps/Foreground;
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/fps/Foreground;->a(Lcom/moji/tool/fps/Foreground;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/tool/fps/Foreground$1;->a:Lcom/moji/tool/fps/Foreground;
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/fps/Foreground;->b(Lcom/moji/tool/fps/Foreground;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 165
|
|
iget-object v0, p0, Lcom/moji/tool/fps/Foreground$1;->a:Lcom/moji/tool/fps/Foreground;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/tool/fps/Foreground;->a(Lcom/moji/tool/fps/Foreground;Z)Z
|
|
|
|
.line 166
|
|
sget-object v0, Lcom/moji/tool/fps/Foreground;->a:Ljava/lang/String;
|
|
|
|
const-string v1, "went background"
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 167
|
|
iget-object v0, p0, Lcom/moji/tool/fps/Foreground$1;->a:Lcom/moji/tool/fps/Foreground;
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/fps/Foreground;->c(Lcom/moji/tool/fps/Foreground;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/tool/fps/Foreground$Listener;
|
|
|
|
.line 169
|
|
:try_start_0
|
|
invoke-interface {v1}, Lcom/moji/tool/fps/Foreground$Listener;->b()V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
.line 171
|
|
sget-object v2, Lcom/moji/tool/fps/Foreground;->a:Ljava/lang/String;
|
|
|
|
const-string v3, "Listener threw exception!"
|
|
|
|
invoke-static {v2, v3, v1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 175
|
|
:cond_0
|
|
sget-object v0, Lcom/moji/tool/fps/Foreground;->a:Ljava/lang/String;
|
|
|
|
const-string v1, "still foreground"
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|