.class public Lf/c/a/f; .super Ljava/lang/Object; .source "ActivityHandler.java" # interfaces .implements Lf/c/a/t0; # instance fields .field public final synthetic a:Lf/c/a/a; # direct methods .method public constructor (Lf/c/a/a;)V .locals 0 iput-object p1, p0, Lf/c/a/f;->a:Lf/c/a/a; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public a(Lf/c/a/a;)V .locals 6 iget-object v0, p0, Lf/c/a/f;->a:Lf/c/a/a; iget-object v0, v0, Lf/c/a/a;->j:Lf/c/a/r; iget-object v0, v0, Lf/c/a/r;->v:Ljava/lang/Boolean; invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z move-result v0 invoke-virtual {p1}, Lf/c/a/a;->o()Z move-result v1 const-string v2, "Adjust already enabled" const-string v3, "Adjust already disabled" const/4 v4, 0x1 const/4 v5, 0x0 if-eq v1, v0, :cond_0 const/4 v1, 0x1 goto :goto_1 :cond_0 if-eqz v1, :cond_1 iget-object v1, p1, Lf/c/a/a;->d:Lf/c/a/q0; new-array v3, v5, [Ljava/lang/Object; check-cast v1, Lf/c/a/x0; invoke-virtual {v1, v2, v3}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V goto :goto_0 :cond_1 iget-object v1, p1, Lf/c/a/a;->d:Lf/c/a/q0; new-array v2, v5, [Ljava/lang/Object; check-cast v1, Lf/c/a/x0; invoke-virtual {v1, v3, v2}, Lf/c/a/x0;->a(Ljava/lang/String;[Ljava/lang/Object;)V :goto_0 const/4 v1, 0x0 :goto_1 if-nez v1, :cond_2 goto/16 :goto_4 :cond_2 iget-object v1, p1, Lf/c/a/a;->h:Lf/c/a/a$m; iput-boolean v0, v1, Lf/c/a/a$m;->a:Z iget-object v1, p1, Lf/c/a/a;->c:Lf/c/a/q; if-nez v1, :cond_3 xor-int/2addr v0, v4 const-string v1, "Handlers will start as paused due to the SDK being disabled" const-string v2, "Handlers will still start as paused" const-string v3, "Handlers will start as active due to the SDK being enabled" invoke-virtual {p1, v0, v1, v2, v3}, Lf/c/a/a;->F(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V goto :goto_4 :cond_3 if-eqz v0, :cond_6 new-instance v1, Lf/c/a/r1; iget-object v2, p1, Lf/c/a/a;->j:Lf/c/a/r; iget-object v2, v2, Lf/c/a/r;->a:Landroid/content/Context; invoke-direct {v1, v2}, Lf/c/a/r1;->(Landroid/content/Context;)V monitor-enter v1 :try_start_0 const-string v2, "install_tracked" monitor-enter v1 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_1 :try_start_1 iget-object v3, v1, Lf/c/a/r1;->a:Landroid/content/SharedPreferences; invoke-interface {v3, v2, v5}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z move-result v5 :try_end_1 .catch Ljava/lang/ClassCastException; {:try_start_1 .. :try_end_1} :catch_0 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :try_start_2 monitor-exit v1 goto :goto_2 :catchall_0 move-exception p1 monitor-exit v1 throw p1 :catch_0 monitor-exit v1 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_1 :goto_2 monitor-exit v1 if-nez v5, :cond_4 invoke-static {}, Ljava/lang/System;->currentTimeMillis()J move-result-wide v2 invoke-virtual {p1, v2, v3}, Lf/c/a/a;->y(J)V :cond_4 invoke-virtual {v1}, Lf/c/a/r1;->a()Ljava/lang/String; move-result-object v2 if-eqz v2, :cond_5 iget-object v3, p1, Lf/c/a/a;->c:Lf/c/a/q; iget-object v3, v3, Lf/c/a/q;->pushToken:Ljava/lang/String; invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v3 if-nez v3, :cond_5 iget-object v3, p1, Lf/c/a/a;->a:Lf/c/a/l0; new-instance v5, Lf/c/a/a$f; invoke-direct {v5, p1, v4, v2}, Lf/c/a/a$f;->(Lf/c/a/a;ZLjava/lang/String;)V iget-object v2, v3, Lf/c/a/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor; invoke-virtual {v2, v5}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future; :cond_5 invoke-virtual {v1}, Lf/c/a/r1;->c()Lorg/json/JSONArray; iget-object v1, p1, Lf/c/a/a;->a:Lf/c/a/l0; new-instance v2, Lf/c/a/a$l; invoke-direct {v2, p1}, Lf/c/a/a$l;->(Lf/c/a/a;)V iget-object v1, v1, Lf/c/a/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor; invoke-virtual {v1, v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future; goto :goto_3 :catchall_1 move-exception p1 monitor-exit v1 throw p1 :cond_6 :goto_3 iget-object v1, p1, Lf/c/a/a;->c:Lf/c/a/q; iput-boolean v0, v1, Lf/c/a/q;->enabled:Z invoke-virtual {p1}, Lf/c/a/a;->G()V xor-int/2addr v0, v4 const-string v1, "Pausing handlers due to SDK being disabled" const-string v2, "Handlers remain paused" const-string v3, "Resuming handlers due to SDK being enabled" invoke-virtual {p1, v0, v1, v2, v3}, Lf/c/a/a;->F(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V :goto_4 return-void .end method