Changes of com.discord v1144
This commit is contained in:
parent
3b0c33520d
commit
4746542b20
25752 changed files with 77 additions and 4382359 deletions
|
@ -1,72 +0,0 @@
|
|||
.class public Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Backgrounded.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action1;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;->checkBackgrounded(I)V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Lrx/functions/Action1<",
|
||||
"Ljava/lang/Long;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic this$0:Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$1;->this$0:Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public call(Ljava/lang/Long;)V
|
||||
.locals 1
|
||||
|
||||
invoke-static {}, Lcom/miguelgaeta/backgrounded/Backgrounded;->access$000()Lrx/subjects/SerializedSubject;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p1, v0}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic call(Ljava/lang/Object;)V
|
||||
.locals 0
|
||||
|
||||
check-cast p1, Ljava/lang/Long;
|
||||
|
||||
invoke-virtual {p0, p1}, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$1;->call(Ljava/lang/Long;)V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,66 +0,0 @@
|
|||
.class public Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$2;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Backgrounded.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/functions/Action1;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;->checkBackgrounded(I)V
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Lrx/functions/Action1<",
|
||||
"Ljava/lang/Throwable;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic this$0:Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$2;->this$0:Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public bridge synthetic call(Ljava/lang/Object;)V
|
||||
.locals 0
|
||||
|
||||
check-cast p1, Ljava/lang/Throwable;
|
||||
|
||||
invoke-virtual {p0, p1}, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$2;->call(Ljava/lang/Throwable;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public call(Ljava/lang/Throwable;)V
|
||||
.locals 1
|
||||
|
||||
const-string p1, "Backgrounded"
|
||||
|
||||
const-string v0, "Subscription error in backgrounded delay."
|
||||
|
||||
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,32 +0,0 @@
|
|||
.class public Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$Constants;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Backgrounded.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "Constants"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final DELAY:I = 0x7d0
|
||||
|
||||
.field public static final DELAY_SHORT:I = 0x1f4
|
||||
|
||||
.field public static final TAG:Ljava/lang/String; = "Backgrounded"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,103 +0,0 @@
|
|||
.class public Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
.super Lcom/miguelgaeta/backgrounded/BackgroundedActivityLifecycleCallbacks;
|
||||
.source "Backgrounded.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/miguelgaeta/backgrounded/Backgrounded;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "Lifecycle"
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$Constants;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public subscription:Lrx/Subscription;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/miguelgaeta/backgrounded/BackgroundedActivityLifecycleCallbacks;-><init>()V
|
||||
|
||||
const/16 v0, 0x1f4
|
||||
|
||||
invoke-direct {p0, v0}, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;->checkBackgrounded(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private checkBackgrounded(I)V
|
||||
.locals 2
|
||||
|
||||
int-to-long v0, p1
|
||||
|
||||
sget-object p1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
||||
|
||||
invoke-static {v0, v1, p1}, Lrx/Observable;->h(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance v0, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$1;
|
||||
|
||||
invoke-direct {v0, p0}, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$1;-><init>(Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;)V
|
||||
|
||||
new-instance v1, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$2;
|
||||
|
||||
invoke-direct {v1, p0}, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle$2;-><init>(Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;)V
|
||||
|
||||
invoke-virtual {p1, v0, v1}, Lrx/Observable;->a(Lrx/functions/Action1;Lrx/functions/Action1;)Lrx/Subscription;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iput-object p1, p0, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;->subscription:Lrx/Subscription;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public onActivityPaused(Landroid/app/Activity;)V
|
||||
.locals 0
|
||||
|
||||
const/16 p1, 0x7d0
|
||||
|
||||
invoke-direct {p0, p1}, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;->checkBackgrounded(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onActivityResumed(Landroid/app/Activity;)V
|
||||
.locals 1
|
||||
|
||||
iget-object p1, p0, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;->subscription:Lrx/Subscription;
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
|
||||
invoke-interface {p1}, Lrx/Subscription;->unsubscribe()V
|
||||
|
||||
:cond_0
|
||||
invoke-static {}, Lcom/miguelgaeta/backgrounded/Backgrounded;->access$000()Lrx/subjects/SerializedSubject;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p1, v0}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,173 +0,0 @@
|
|||
.class public Lcom/miguelgaeta/backgrounded/Backgrounded;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Backgrounded.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final emitter:Lrx/subjects/SerializedSubject;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lrx/subjects/SerializedSubject<",
|
||||
"Ljava/lang/Boolean;",
|
||||
"Ljava/lang/Boolean;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public static lifecycle:Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Lrx/subjects/SerializedSubject;
|
||||
|
||||
invoke-static {}, Lrx/subjects/BehaviorSubject;->p()Lrx/subjects/BehaviorSubject;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-direct {v0, v1}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
|
||||
|
||||
sput-object v0, Lcom/miguelgaeta/backgrounded/Backgrounded;->emitter:Lrx/subjects/SerializedSubject;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static synthetic access$000()Lrx/subjects/SerializedSubject;
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lcom/miguelgaeta/backgrounded/Backgrounded;->emitter:Lrx/subjects/SerializedSubject;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public static checkInitialized()V
|
||||
.locals 2
|
||||
|
||||
sget-object v0, Lcom/miguelgaeta/backgrounded/Backgrounded;->lifecycle:Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/RuntimeException;
|
||||
|
||||
const-string v1, "Backgrounded utility is not initialized."
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public static destroy(Landroid/app/Application;)V
|
||||
.locals 1
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
sget-object v0, Lcom/miguelgaeta/backgrounded/Backgrounded;->lifecycle:Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
|
||||
invoke-virtual {p0, v0}, Landroid/app/Application;->unregisterActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static get()Lrx/Observable;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Lrx/Observable<",
|
||||
"Ljava/lang/Boolean;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-static {}, Lcom/miguelgaeta/backgrounded/Backgrounded;->checkInitialized()V
|
||||
|
||||
sget-object v0, Lcom/miguelgaeta/backgrounded/Backgrounded;->emitter:Lrx/subjects/SerializedSubject;
|
||||
|
||||
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public static init(Landroid/app/Application;)V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
|
||||
invoke-direct {v0}, Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;-><init>()V
|
||||
|
||||
sput-object v0, Lcom/miguelgaeta/backgrounded/Backgrounded;->lifecycle:Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
sget-object v0, Lcom/miguelgaeta/backgrounded/Backgrounded;->lifecycle:Lcom/miguelgaeta/backgrounded/Backgrounded$Lifecycle;
|
||||
|
||||
invoke-virtual {p0, v0}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static isBackgrounded()Z
|
||||
.locals 3
|
||||
|
||||
invoke-static {}, Lcom/miguelgaeta/backgrounded/Backgrounded;->checkInitialized()V
|
||||
|
||||
sget-object v0, Lcom/miguelgaeta/backgrounded/Backgrounded;->emitter:Lrx/subjects/SerializedSubject;
|
||||
|
||||
invoke-virtual {v0}, Lrx/Observable;->i()Lg0/n/b;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
iget-object v0, v0, Lg0/n/b;->a:Lrx/Observable;
|
||||
|
||||
new-instance v2, Lg0/m/a/a;
|
||||
|
||||
invoke-direct {v2, v1, v0}, Lg0/m/a/a;-><init>(Ljava/lang/Object;Lrx/Observable;)V
|
||||
|
||||
invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Ljava/lang/Boolean;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
|
@ -1,60 +0,0 @@
|
|||
.class public Lcom/miguelgaeta/backgrounded/BackgroundedActivityLifecycleCallbacks;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BackgroundedActivityLifecycleCallbacks.java"
|
||||
|
||||
# interfaces
|
||||
.implements Landroid/app/Application$ActivityLifecycleCallbacks;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onActivityDestroyed(Landroid/app/Activity;)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onActivityPaused(Landroid/app/Activity;)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onActivityResumed(Landroid/app/Activity;)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onActivitySaveInstanceState(Landroid/app/Activity;Landroid/os/Bundle;)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onActivityStarted(Landroid/app/Activity;)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onActivityStopped(Landroid/app/Activity;)V
|
||||
.locals 0
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,27 +0,0 @@
|
|||
.class public final Lcom/miguelgaeta/backgrounded/BuildConfig;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BuildConfig.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final APPLICATION_ID:Ljava/lang/String; = "com.miguelgaeta.backgrounded"
|
||||
|
||||
.field public static final BUILD_TYPE:Ljava/lang/String; = "release"
|
||||
|
||||
.field public static final DEBUG:Z = false
|
||||
|
||||
.field public static final FLAVOR:Ljava/lang/String; = ""
|
||||
|
||||
.field public static final VERSION_CODE:I = -0x1
|
||||
|
||||
.field public static final VERSION_NAME:Ljava/lang/String; = ""
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,13 +0,0 @@
|
|||
.class public final Lcom/miguelgaeta/backgrounded/R;
|
||||
.super Ljava/lang/Object;
|
||||
.source "R.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
Loading…
Add table
Add a link
Reference in a new issue