w.smali
.class Lcom/cleanmaster/notification/w;
.super Ljava/lang/Object;
.source "NotificationFeatureUtilizationMonitor.java"
# interfaces
.implements Ljava/util/Observer;
# instance fields
.field final synthetic a:Lcom/cleanmaster/notification/v;
# direct methods
.method constructor <init>(Lcom/cleanmaster/notification/v;)V
.registers 2
.prologue
.line 222
iput-object p1, p0, Lcom/cleanmaster/notification/w;->a:Lcom/cleanmaster/notification/v;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public update(Ljava/util/Observable;Ljava/lang/Object;)V
.registers 7
.prologue
.line 226
:try_start_0
iget-object v0, p0, Lcom/cleanmaster/notification/w;->a:Lcom/cleanmaster/notification/v;
iget-object v0, v0, Lcom/cleanmaster/notification/v;->a:Landroid/content/Context;
const-string v1, "connectivity"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/ConnectivityManager;
.line 227
const-class v1, Landroid/net/ConnectivityManager;
const-string v2, "getMobileDataEnabled"
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Class;
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
.line 228
const/4 v2, 0x1
invoke-virtual {v1, v2}, Ljava/lang/reflect/Method;->setAccessible(Z)V
.line 229
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-virtual {v1, v0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
.line 230
iget-object v1, p0, Lcom/cleanmaster/notification/w;->a:Lcom/cleanmaster/notification/v;
iget-object v1, v1, Lcom/cleanmaster/notification/v;->b:Lcom/cleanmaster/notification/s;
invoke-static {v1}, Lcom/cleanmaster/notification/s;->d(Lcom/cleanmaster/notification/s;)Z
move-result v1
if-eq v1, v0, :cond_52
.line 231
iget-object v1, p0, Lcom/cleanmaster/notification/w;->a:Lcom/cleanmaster/notification/v;
iget-object v1, v1, Lcom/cleanmaster/notification/v;->b:Lcom/cleanmaster/notification/s;
invoke-static {v1, v0}, Lcom/cleanmaster/notification/s;->a(Lcom/cleanmaster/notification/s;Z)Z
.line 232
iget-object v0, p0, Lcom/cleanmaster/notification/w;->a:Lcom/cleanmaster/notification/v;
iget-object v0, v0, Lcom/cleanmaster/notification/v;->a:Landroid/content/Context;
invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotificationDataUtilization()I
move-result v0
.line 233
iget-object v1, p0, Lcom/cleanmaster/notification/w;->a:Lcom/cleanmaster/notification/v;
iget-object v1, v1, Lcom/cleanmaster/notification/v;->a:Landroid/content/Context;
invoke-static {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v1
add-int/lit8 v0, v0, 0x1
invoke-virtual {v1, v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationDataUtilization(I)V
:try_end_52
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_52} :catch_53
.line 237
:cond_52
:goto_52
return-void
.line 235
:catch_53
move-exception v0
goto :goto_52
.end method