AsyncLoadWidget.smali
.class public abstract Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;
.super Ljava/lang/Object;
.source "AsyncLoadWidget.java"
# interfaces
.implements Lcom/cm/plugincluster/news/platform/CoverStateInterface;
# annotations
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# static fields
.field public static mUiHandler:Landroid/os/Handler;
# instance fields
.field private mCallbackHandler:Landroid/os/Handler;
.field private mCallbackRunnable:Ljava/lang/Runnable;
.field private mCanceled:Z
.field private mWorkRunnable:Ljava/lang/Runnable;
# direct methods
.method static constructor <clinit>()V
.registers 2
.prologue
.line 15
new-instance v0, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
sput-object v0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mUiHandler:Landroid/os/Handler;
return-void
.end method
.method public constructor <init>()V
.registers 2
.prologue
.line 14
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 16
const/4 v0, 0x0
iput-object v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCallbackHandler:Landroid/os/Handler;
.line 17
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCanceled:Z
.line 20
sget-object v0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mUiHandler:Landroid/os/Handler;
iput-object v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCallbackHandler:Landroid/os/Handler;
.line 37
new-instance v0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget$1;
invoke-direct {v0, p0}, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget$1;-><init>(Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;)V
iput-object v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mWorkRunnable:Ljava/lang/Runnable;
.line 49
new-instance v0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget$2;
invoke-direct {v0, p0}, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget$2;-><init>(Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;)V
iput-object v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCallbackRunnable:Ljava/lang/Runnable;
return-void
.end method
.method static synthetic access$000(Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;)Z
.registers 2
.prologue
.line 14
iget-boolean v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCanceled:Z
return v0
.end method
.method static synthetic access$100(Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;)Ljava/lang/Runnable;
.registers 2
.prologue
.line 14
iget-object v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCallbackRunnable:Ljava/lang/Runnable;
return-object v0
.end method
.method static synthetic access$200(Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;)Landroid/os/Handler;
.registers 2
.prologue
.line 14
iget-object v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCallbackHandler:Landroid/os/Handler;
return-object v0
.end method
# virtual methods
.method protected cancel()V
.registers 3
.prologue
.line 65
monitor-enter p0
.line 66
const/4 v0, 0x1
:try_start_2
iput-boolean v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCanceled:Z
.line 67
monitor-exit p0
:try_end_5
.catchall {:try_start_2 .. :try_end_5} :catchall_16
.line 68
invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;
move-result-object v0
iget-object v1, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mWorkRunnable:Ljava/lang/Runnable;
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
.line 69
iget-object v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCallbackHandler:Landroid/os/Handler;
iget-object v1, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCallbackRunnable:Ljava/lang/Runnable;
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
.line 70
return-void
.line 67
:catchall_16
move-exception v0
:try_start_17
monitor-exit p0
:try_end_18
.catchall {:try_start_17 .. :try_end_18} :catchall_16
throw v0
.end method
.method public final onCoverAdd(Landroid/content/Intent;)V
.registers 4
.prologue
.line 27
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCanceled:Z
.line 28
invoke-virtual {p0, p1}, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->onCoverAddSynchronized(Landroid/content/Intent;)V
.line 29
invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;
move-result-object v0
iget-object v1, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mWorkRunnable:Ljava/lang/Runnable;
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 30
return-void
.end method
.method protected abstract onCoverAddAsynchronized()V
.end method
.method protected abstract onCoverAddAsynchronizedEnd()V
.end method
.method protected abstract onCoverAddSynchronized(Landroid/content/Intent;)V
.end method
.method public onCoverRemoved(I)V
.registers 2
.prologue
.line 34
invoke-virtual {p0}, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->cancel()V
.line 35
return-void
.end method
.method protected setCallbackHandler(Landroid/os/Handler;)V
.registers 2
.prologue
.line 57
if-nez p1, :cond_3
.line 62
:goto_2
return-void
.line 60
:cond_3
iput-object p1, p0, Lcom/cm/plugincluster/news/platform/AsyncLoadWidget;->mCallbackHandler:Landroid/os/Handler;
goto :goto_2
.end method