Текст
.class public Lcom/stalker1607/olaStalker1607/MainActivity;
.super Lcom/stalker1607/olaStalker1607/BaseActivity;
.source "MainActivity.java"
# instance fields
.field MyApp:Lcom/stalker1607/olaStalker1607/MyApplication;
.field a:I
.field doubleBackToExitPressedOnce:Z
.field drawer:Landroidx/drawerlayout/widget/DrawerLayout;
.field private fragmentManager:Landroidx/fragment/app/FragmentManager;
.field final handler:Landroid/os/Handler;
.field mAdViewLayout:Landroid/widget/LinearLayout;
.field private m_Text:Ljava/lang/String;
.field manager:Landroid/app/DownloadManager;
.field navigationView:Lcom/google/android/material/navigation/NavigationView;
.field queueId:J
.field reciver:Landroid/content/BroadcastReceiver;
.field versionCode:I
# direct methods
.method public constructor <init>()V
.locals 2
.line 90
invoke-direct {p0}, Lcom/stalker1607/olaStalker1607/BaseActivity;-><init>()V
const/4 v0, 0x0
.line 97
iput-boolean v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->doubleBackToExitPressedOnce:Z
.line 172
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
iput-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->handler:Landroid/os/Handler;
return-void
.end method
.method static synthetic access$000(Lcom/stalker1607/olaStalker1607/MainActivity;)V
.locals 0
.line 90
invoke-direct {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getAppConstant()V
return-void
.end method
.method static synthetic access$100(Lcom/stalker1607/olaStalker1607/MainActivity;)V
.locals 0
.line 90
invoke-direct {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getAppConsent()V
return-void
.end method
.method static synthetic access$200(Lcom/stalker1607/olaStalker1607/MainActivity;)Landroidx/fragment/app/FragmentManager;
.locals 0
.line 90
iget-object p0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
return-object p0
.end method
.method static synthetic access$300(Lcom/stalker1607/olaStalker1607/MainActivity;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
.locals 0
.line 90
invoke-direct {p0, p1, p2, p3, p4}, Lcom/stalker1607/olaStalker1607/MainActivity;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
return-void
.end method
.method static synthetic access$400(Lcom/stalker1607/olaStalker1607/MainActivity;Ljava/lang/String;)V
.locals 0
.line 90
invoke-direct {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->newUpdateDialog(Ljava/lang/String;)V
return-void
.end method
.method private getAppConsent()V
.locals 5
.line 372
new-instance v0, Lcom/loopj/android/http/AsyncHttpClient;
invoke-direct {v0}, Lcom/loopj/android/http/AsyncHttpClient;-><init>()V
.line 373
new-instance v1, Lcom/loopj/android/http/RequestParams;
invoke-direct {v1}, Lcom/loopj/android/http/RequestParams;-><init>()V
.line 374
new-instance v2, Lcom/google/gson/Gson;
invoke-direct {v2}, Lcom/google/gson/Gson;-><init>()V
new-instance v3, Lcom/stalker1607/util/API;
invoke-direct {v3}, Lcom/stalker1607/util/API;-><init>()V
invoke-virtual {v2, v3}, Lcom/google/gson/Gson;->toJsonTree(Ljava/lang/Object;)Lcom/google/gson/JsonElement;
move-result-object v2
check-cast v2, Lcom/google/gson/JsonObject;
.line 375
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "get_app_details"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {p0}, Lcom/github/javiersantos/piracychecker/utils/LibraryUtilsKt;->getApkSignature(Landroid/content/Context;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
const-string v4, "method_name"
invoke-virtual {v2, v4, v3}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V
.line 376
invoke-virtual {v2}, Lcom/google/gson/JsonObject;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Lcom/stalker1607/util/API;->toBase64(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
const-string v3, "data"
invoke-virtual {v1, v3, v2}, Lcom/loopj/android/http/RequestParams;->put(Ljava/lang/String;Ljava/lang/String;)V
.line 377
sget-object v2, Lcom/stalker1607/util/Constant;->API_URL:Ljava/lang/String;
new-instance v3, Lcom/stalker1607/olaStalker1607/MainActivity$4;
invoke-direct {v3, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$4;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
invoke-virtual {v0, v2, v1, v3}, Lcom/loopj/android/http/AsyncHttpClient;->post(Ljava/lang/String;Lcom/loopj/android/http/RequestParams;Lcom/loopj/android/http/ResponseHandlerInterface;)Lcom/loopj/android/http/RequestHandle;
return-void
.end method
.method private getAppConstant()V
.locals 5
.line 650
new-instance v0, Lcom/loopj/android/http/AsyncHttpClient;
invoke-direct {v0}, Lcom/loopj/android/http/AsyncHttpClient;-><init>()V
.line 651
new-instance v1, Lcom/loopj/android/http/RequestParams;
invoke-direct {v1}, Lcom/loopj/android/http/RequestParams;-><init>()V
.line 652
new-instance v2, Lcom/google/gson/Gson;
invoke-direct {v2}, Lcom/google/gson/Gson;-><init>()V
new-instance v3, Lcom/stalker1607/util/API;
invoke-direct {v3}, Lcom/stalker1607/util/API;-><init>()V
invoke-virtual {v2, v3}, Lcom/google/gson/Gson;->toJsonTree(Ljava/lang/Object;)Lcom/google/gson/JsonElement;
move-result-object v2
check-cast v2, Lcom/google/gson/JsonObject;
.line 653
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "get_app_details"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {p0}, Lcom/github/javiersantos/piracychecker/utils/LibraryUtilsKt;->getApkSignature(Landroid/content/Context;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
const-string v4, "method_name"
invoke-virtual {v2, v4, v3}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V
.line 654
invoke-virtual {v2}, Lcom/google/gson/JsonObject;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Lcom/stalker1607/util/API;->toBase64(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
const-string v3, "data"
invoke-virtual {v1, v3, v2}, Lcom/loopj/android/http/RequestParams;->put(Ljava/lang/String;Ljava/lang/String;)V
.line 655
sget-object v2, Lcom/stalker1607/util/Constant;->API_URL:Ljava/lang/String;
new-instance v3, Lcom/stalker1607/olaStalker1607/MainActivity$9;
invoke-direct {v3, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$9;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
invoke-virtual {v0, v2, v1, v3}, Lcom/loopj/android/http/AsyncHttpClient;->post(Ljava/lang/String;Lcom/loopj/android/http/RequestParams;Lcom/loopj/android/http/ResponseHandlerInterface;)Lcom/loopj/android/http/RequestHandle;
return-void
.end method
.method private newUpdateDialog(Ljava/lang/String;)V
.locals 3
.line 545
new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;
invoke-direct {v0, p0}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
const v1, 0x7f1000ce
.line 546
invoke-virtual {p0, v1}, Lcom/stalker1607/olaStalker1607/MainActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;
move-result-object v0
const/4 v1, 0x0
.line 547
invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setCancelable(Z)Landroidx/appcompat/app/AlertDialog$Builder;
move-result-object v0
const v1, 0x7f1000cd
.line 548
invoke-virtual {p0, v1}, Lcom/stalker1607/olaStalker1607/MainActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;
move-result-object v0
const v1, 0x7f1000ca
.line 549
invoke-virtual {p0, v1}, Lcom/stalker1607/olaStalker1607/MainActivity;->getString(I)Ljava/lang/String;
move-result-object v1
new-instance v2, Lcom/stalker1607/olaStalker1607/MainActivity$6;
invoke-direct {v2, p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity$6;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;Ljava/lang/String;)V
invoke-virtual {v0, v1, v2}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;
move-result-object p1
const v0, 0x7f0d0001
.line 563
invoke-virtual {p1, v0}, Landroidx/appcompat/app/AlertDialog$Builder;->setIcon(I)Landroidx/appcompat/app/AlertDialog$Builder;
move-result-object p1
.line 564
invoke-virtual {p1}, Landroidx/appcompat/app/AlertDialog$Builder;->show()Landroidx/appcompat/app/AlertDialog;
return-void
.end method
.method private showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
.locals 1
.line 579
new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;
invoke-direct {v0, p1}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
.line 580
invoke-virtual {v0, p4}, Landroidx/appcompat/app/AlertDialog$Builder;->setIcon(I)Landroidx/appcompat/app/AlertDialog$Builder;
.line 581
invoke-virtual {v0, p2}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;
.line 582
invoke-virtual {v0, p3}, Landroidx/appcompat/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;
const/4 p1, 0x1
.line 584
invoke-virtual {v0, p1}, Landroidx/appcompat/app/AlertDialog$Builder;->setCancelable(Z)Landroidx/appcompat/app/AlertDialog$Builder;
const p1, 0x7f10009d
.line 587
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->getString(I)Ljava/lang/String;
move-result-object p1
new-instance p2, Lcom/stalker1607/olaStalker1607/MainActivity$7;
invoke-direct {p2, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$7;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
.line 586
invoke-virtual {v0, p1, p2}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;
.line 596
invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog$Builder;->create()Landroidx/appcompat/app/AlertDialog;
move-result-object p1
.line 597
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 p3, 0x13
if-lt p2, p3, :cond_0
.line 598
invoke-virtual {p1}, Landroidx/appcompat/app/AlertDialog;->getWindow()Landroid/view/Window;
move-result-object p2
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
check-cast p2, Landroid/view/Window;
invoke-virtual {p2}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;
move-result-object p2
const p3, 0x7f1100e0
iput p3, p2, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I
.line 600
:cond_0
invoke-virtual {p1}, Landroidx/appcompat/app/AlertDialog;->show()V
return-void
.end method
# virtual methods
.method public loadFrag(Landroidx/fragment/app/Fragment;Ljava/lang/String;Landroidx/fragment/app/FragmentManager;)V
.locals 2
const/4 v0, 0x0
.line 498
:goto_0
invoke-virtual {p3}, Landroidx/fragment/app/FragmentManager;->getBackStackEntryCount()I
move-result v1
if-ge v0, v1, :cond_0
.line 499
invoke-virtual {p3}, Landroidx/fragment/app/FragmentManager;->popBackStack()V
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 501
:cond_0
invoke-virtual {p3}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object p3
const v0, 0x7f080006
.line 503
invoke-virtual {p3, v0, p1, p2}, Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
.line 504
invoke-virtual {p3}, Landroidx/fragment/app/FragmentTransaction;->commit()I
.line 505
invoke-virtual {p0, p2}, Lcom/stalker1607/olaStalker1607/MainActivity;->setToolbarTitle(Ljava/lang/String;)V
return-void
.end method
.method public onBackPressed()V
.locals 4
.line 516
iget-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->drawer:Landroidx/drawerlayout/widget/DrawerLayout;
const v1, 0x800003
invoke-virtual {v0, v1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerOpen(I)Z
move-result v0
if-eqz v0, :cond_0
.line 517
iget-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->drawer:Landroidx/drawerlayout/widget/DrawerLayout;
invoke-virtual {v0, v1}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawer(I)V
goto :goto_0
.line 518
:cond_0
iget-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->getBackStackEntryCount()I
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_1
.line 519
iget-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->getFragments()Ljava/util/List;
move-result-object v0
iget-object v2, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
invoke-virtual {v2}, Landroidx/fragment/app/FragmentManager;->getBackStackEntryCount()I
move-result v2
sub-int/2addr v2, v1
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/Fragment;
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getTag()Ljava/lang/String;
move-result-object v0
.line 520
invoke-virtual {p0, v0}, Lcom/stalker1607/olaStalker1607/MainActivity;->setToolbarTitle(Ljava/lang/String;)V
.line 522
invoke-super {p0}, Lcom/stalker1607/olaStalker1607/BaseActivity;->onBackPressed()V
goto :goto_0
.line 524
:cond_1
iget-boolean v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->doubleBackToExitPressedOnce:Z
if-eqz v0, :cond_2
.line 527
invoke-super {p0}, Lcom/stalker1607/olaStalker1607/BaseActivity;->onBackPressed()V
return-void
.line 532
:cond_2
iput-boolean v1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->doubleBackToExitPressedOnce:Z
const/4 v0, 0x0
const-string v1, "Please click BACK again to exit"
.line 533
invoke-static {p0, v1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
.line 535
new-instance v0, Landroid/os/Handler;
invoke-direct {v0}, Landroid/os/Handler;-><init>()V
new-instance v1, Lcom/stalker1607/olaStalker1607/MainActivity$5;
invoke-direct {v1, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$5;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
const-wide/16 v2, 0x7d0
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
:goto_0
return-void
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.locals 6
const/4 v0, 0x1
const-string v1, "апапап."
invoke-static {p0, v1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
.line 176
invoke-super {p0, p1}, Lcom/stalker1607/olaStalker1607/BaseActivity;->onCreate(Landroid/os/Bundle;)V
.line 177
new-instance p1, Lcom/github/javiersantos/piracychecker/PiracyChecker;
invoke-direct {p1, p0}, Lcom/github/javiersantos/piracychecker/PiracyChecker;-><init>(Landroid/content/Context;)V
sget-object v0, Lcom/github/javiersantos/piracychecker/enums/Display;->ACTIVITY:Lcom/github/javiersantos/piracychecker/enums/Display;
invoke-virtual {p1, v0}, Lcom/github/javiersantos/piracychecker/PiracyChecker;->display(Lcom/github/javiersantos/piracychecker/enums/Display;)Lcom/github/javiersantos/piracychecker/PiracyChecker;
move-result-object p1
new-instance v0, Lcom/stalker1607/olaStalker1607/MainActivity$1;
invoke-direct {v0, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$1;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
invoke-virtual {p1, v0}, Lcom/github/javiersantos/piracychecker/PiracyChecker;->callback(Lcom/github/javiersantos/piracychecker/callbacks/PiracyCheckerCallback;)Lcom/github/javiersantos/piracychecker/PiracyChecker;
move-result-object p1
.line 193
invoke-virtual {p1}, Lcom/github/javiersantos/piracychecker/PiracyChecker;->start()V
.line 236
invoke-static {p0}, Lio/monedata/Monedata;->start(Landroid/content/Context;)V
.line 237
sget-object p1, Lio/monedata/Monedata;->Consent:Lio/monedata/consent/ConsentManager;
const/4 v0, 0x1
invoke-virtual {p1, p0, v0}, Lio/monedata/consent/ConsentManager;->set(Landroid/content/Context;Z)V
const p1, 0x7f0b0020
.line 243
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->setContentView(I)V
.line 249
invoke-static {p0}, Lcom/stalker1607/util/IsRTL;->ifSupported(Landroid/app/Activity;)V
const p1, 0x7f080194
.line 250
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->findViewById(I)Landroid/view/View;
move-result-object p1
move-object v3, p1
check-cast v3, Landroidx/appcompat/widget/Toolbar;
.line 252
invoke-virtual {p0, v3}, Lcom/stalker1607/olaStalker1607/MainActivity;->setSupportActionBar(Landroidx/appcompat/widget/Toolbar;)V
const p1, 0x7f080050
.line 256
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/LinearLayout;
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->mAdViewLayout:Landroid/widget/LinearLayout;
.line 257
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object p1
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
.line 258
invoke-static {}, Lcom/stalker1607/olaStalker1607/MyApplication;->getInstance()Lcom/stalker1607/olaStalker1607/MyApplication;
move-result-object p1
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->MyApp:Lcom/stalker1607/olaStalker1607/MyApplication;
const p1, 0x7f0800f5
.line 259
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Lcom/google/android/material/navigation/NavigationView;
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->navigationView:Lcom/google/android/material/navigation/NavigationView;
const p1, 0x7f080094
.line 260
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroidx/drawerlayout/widget/DrawerLayout;
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->drawer:Landroidx/drawerlayout/widget/DrawerLayout;
.line 262
iget-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->navigationView:Lcom/google/android/material/navigation/NavigationView;
const/4 v0, 0x0
invoke-virtual {p1, v0}, Lcom/google/android/material/navigation/NavigationView;->setItemIconTintList(Landroid/content/res/ColorStateList;)V
.line 265
:try_start_0
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p1
.line 266
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getPackageName()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
invoke-virtual {p1, v0, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object p1
iget p1, p1, Landroid/content/pm/PackageInfo;->versionCode:I
iput p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->versionCode:I
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
.line 269
invoke-virtual {p1}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V
.line 274
:goto_0
iget-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->navigationView:Lcom/google/android/material/navigation/NavigationView;
new-instance v0, Lcom/stalker1607/olaStalker1607/MainActivity$2;
invoke-direct {v0, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$2;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
invoke-virtual {p1, v0}, Lcom/google/android/material/navigation/NavigationView;->setNavigationItemSelectedListener(Lcom/google/android/material/navigation/NavigationView$OnNavigationItemSelectedListener;)V
.line 323
new-instance p1, Landroidx/appcompat/app/ActionBarDrawerToggle;
iget-object v2, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->drawer:Landroidx/drawerlayout/widget/DrawerLayout;
const v4, 0x7f100099
const v5, 0x7f100098
move-object v0, p1
move-object v1, p0
invoke-direct/range {v0 .. v5}, Landroidx/appcompat/app/ActionBarDrawerToggle;-><init>(Landroid/app/Activity;Landroidx/drawerlayout/widget/DrawerLayout;Landroidx/appcompat/widget/Toolbar;II)V
.line 326
iget-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->drawer:Landroidx/drawerlayout/widget/DrawerLayout;
invoke-virtual {v0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->addDrawerListener(Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;)V
.line 327
invoke-virtual {p1}, Landroidx/appcompat/app/ActionBarDrawerToggle;->syncState()V
.line 329
new-instance p1, Lcom/stalker1607/fragment/CategoryFragment;
invoke-direct {p1}, Lcom/stalker1607/fragment/CategoryFragment;-><init>()V
const v0, 0x7f100071
.line 330
invoke-virtual {p0, v0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getString(I)Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
invoke-virtual {p0, p1, v0, v1}, Lcom/stalker1607/olaStalker1607/MainActivity;->loadFrag(Landroidx/fragment/app/Fragment;Ljava/lang/String;Landroidx/fragment/app/FragmentManager;)V
.line 332
invoke-static {p0}, Lcom/stalker1607/util/NetworkUtils;->isConnected(Landroid/content/Context;)Z
move-result p1
if-eqz p1, :cond_0
.line 333
invoke-direct {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getAppConsent()V
.line 336
:cond_0
new-instance p1, Lcom/stalker1607/olaStalker1607/MainActivity$3;
invoke-direct {p1, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$3;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->reciver:Landroid/content/BroadcastReceiver;
return-void
.end method
.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
.locals 3
.line 611
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getMenuInflater()Landroid/view/MenuInflater;
move-result-object v0
const v1, 0x7f0c0001
.line 612
invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V
const v0, 0x7f080140
.line 613
invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
move-result-object v0
const v1, 0x7f080051
.line 615
invoke-interface {p1, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
const v1, 0x7f080130
.line 616
invoke-interface {p1, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
move-result-object v1
const/4 v2, 0x1
.line 617
invoke-interface {v1, v2}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;
const/4 v2, 0x0
.line 620
invoke-interface {v0, v2}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;
.line 621
invoke-interface {v0}, Landroid/view/MenuItem;->getActionView()Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/appcompat/widget/SearchView;
.line 624
new-instance v0, Lcom/stalker1607/olaStalker1607/MainActivity$8;
invoke-direct {v0, p0, v1}, Lcom/stalker1607/olaStalker1607/MainActivity$8;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;Landroid/view/MenuItem;)V
invoke-interface {v1, v0}, Landroid/view/MenuItem;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Landroid/view/MenuItem;
.line 646
invoke-super {p0, p1}, Lcom/stalker1607/olaStalker1607/BaseActivity;->onCreateOptionsMenu(Landroid/view/Menu;)Z
move-result p1
return p1
.end method
.method public setToolbarTitle(Ljava/lang/String;)V
.locals 1
.line 509
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;
move-result-object v0
if-eqz v0, :cond_0
.line 510
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;
move-result-object v0
invoke-virtual {v0, p1}, Landroidx/appcompat/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V
:cond_0
return-void
.end method
.super Lcom/stalker1607/olaStalker1607/BaseActivity;
.source "MainActivity.java"
# instance fields
.field MyApp:Lcom/stalker1607/olaStalker1607/MyApplication;
.field a:I
.field doubleBackToExitPressedOnce:Z
.field drawer:Landroidx/drawerlayout/widget/DrawerLayout;
.field private fragmentManager:Landroidx/fragment/app/FragmentManager;
.field final handler:Landroid/os/Handler;
.field mAdViewLayout:Landroid/widget/LinearLayout;
.field private m_Text:Ljava/lang/String;
.field manager:Landroid/app/DownloadManager;
.field navigationView:Lcom/google/android/material/navigation/NavigationView;
.field queueId:J
.field reciver:Landroid/content/BroadcastReceiver;
.field versionCode:I
# direct methods
.method public constructor <init>()V
.locals 2
.line 90
invoke-direct {p0}, Lcom/stalker1607/olaStalker1607/BaseActivity;-><init>()V
const/4 v0, 0x0
.line 97
iput-boolean v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->doubleBackToExitPressedOnce:Z
.line 172
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
iput-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->handler:Landroid/os/Handler;
return-void
.end method
.method static synthetic access$000(Lcom/stalker1607/olaStalker1607/MainActivity;)V
.locals 0
.line 90
invoke-direct {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getAppConstant()V
return-void
.end method
.method static synthetic access$100(Lcom/stalker1607/olaStalker1607/MainActivity;)V
.locals 0
.line 90
invoke-direct {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getAppConsent()V
return-void
.end method
.method static synthetic access$200(Lcom/stalker1607/olaStalker1607/MainActivity;)Landroidx/fragment/app/FragmentManager;
.locals 0
.line 90
iget-object p0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
return-object p0
.end method
.method static synthetic access$300(Lcom/stalker1607/olaStalker1607/MainActivity;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
.locals 0
.line 90
invoke-direct {p0, p1, p2, p3, p4}, Lcom/stalker1607/olaStalker1607/MainActivity;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
return-void
.end method
.method static synthetic access$400(Lcom/stalker1607/olaStalker1607/MainActivity;Ljava/lang/String;)V
.locals 0
.line 90
invoke-direct {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->newUpdateDialog(Ljava/lang/String;)V
return-void
.end method
.method private getAppConsent()V
.locals 5
.line 372
new-instance v0, Lcom/loopj/android/http/AsyncHttpClient;
invoke-direct {v0}, Lcom/loopj/android/http/AsyncHttpClient;-><init>()V
.line 373
new-instance v1, Lcom/loopj/android/http/RequestParams;
invoke-direct {v1}, Lcom/loopj/android/http/RequestParams;-><init>()V
.line 374
new-instance v2, Lcom/google/gson/Gson;
invoke-direct {v2}, Lcom/google/gson/Gson;-><init>()V
new-instance v3, Lcom/stalker1607/util/API;
invoke-direct {v3}, Lcom/stalker1607/util/API;-><init>()V
invoke-virtual {v2, v3}, Lcom/google/gson/Gson;->toJsonTree(Ljava/lang/Object;)Lcom/google/gson/JsonElement;
move-result-object v2
check-cast v2, Lcom/google/gson/JsonObject;
.line 375
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "get_app_details"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {p0}, Lcom/github/javiersantos/piracychecker/utils/LibraryUtilsKt;->getApkSignature(Landroid/content/Context;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
const-string v4, "method_name"
invoke-virtual {v2, v4, v3}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V
.line 376
invoke-virtual {v2}, Lcom/google/gson/JsonObject;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Lcom/stalker1607/util/API;->toBase64(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
const-string v3, "data"
invoke-virtual {v1, v3, v2}, Lcom/loopj/android/http/RequestParams;->put(Ljava/lang/String;Ljava/lang/String;)V
.line 377
sget-object v2, Lcom/stalker1607/util/Constant;->API_URL:Ljava/lang/String;
new-instance v3, Lcom/stalker1607/olaStalker1607/MainActivity$4;
invoke-direct {v3, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$4;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
invoke-virtual {v0, v2, v1, v3}, Lcom/loopj/android/http/AsyncHttpClient;->post(Ljava/lang/String;Lcom/loopj/android/http/RequestParams;Lcom/loopj/android/http/ResponseHandlerInterface;)Lcom/loopj/android/http/RequestHandle;
return-void
.end method
.method private getAppConstant()V
.locals 5
.line 650
new-instance v0, Lcom/loopj/android/http/AsyncHttpClient;
invoke-direct {v0}, Lcom/loopj/android/http/AsyncHttpClient;-><init>()V
.line 651
new-instance v1, Lcom/loopj/android/http/RequestParams;
invoke-direct {v1}, Lcom/loopj/android/http/RequestParams;-><init>()V
.line 652
new-instance v2, Lcom/google/gson/Gson;
invoke-direct {v2}, Lcom/google/gson/Gson;-><init>()V
new-instance v3, Lcom/stalker1607/util/API;
invoke-direct {v3}, Lcom/stalker1607/util/API;-><init>()V
invoke-virtual {v2, v3}, Lcom/google/gson/Gson;->toJsonTree(Ljava/lang/Object;)Lcom/google/gson/JsonElement;
move-result-object v2
check-cast v2, Lcom/google/gson/JsonObject;
.line 653
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "get_app_details"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {p0}, Lcom/github/javiersantos/piracychecker/utils/LibraryUtilsKt;->getApkSignature(Landroid/content/Context;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
const-string v4, "method_name"
invoke-virtual {v2, v4, v3}, Lcom/google/gson/JsonObject;->addProperty(Ljava/lang/String;Ljava/lang/String;)V
.line 654
invoke-virtual {v2}, Lcom/google/gson/JsonObject;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Lcom/stalker1607/util/API;->toBase64(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
const-string v3, "data"
invoke-virtual {v1, v3, v2}, Lcom/loopj/android/http/RequestParams;->put(Ljava/lang/String;Ljava/lang/String;)V
.line 655
sget-object v2, Lcom/stalker1607/util/Constant;->API_URL:Ljava/lang/String;
new-instance v3, Lcom/stalker1607/olaStalker1607/MainActivity$9;
invoke-direct {v3, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$9;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
invoke-virtual {v0, v2, v1, v3}, Lcom/loopj/android/http/AsyncHttpClient;->post(Ljava/lang/String;Lcom/loopj/android/http/RequestParams;Lcom/loopj/android/http/ResponseHandlerInterface;)Lcom/loopj/android/http/RequestHandle;
return-void
.end method
.method private newUpdateDialog(Ljava/lang/String;)V
.locals 3
.line 545
new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;
invoke-direct {v0, p0}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
const v1, 0x7f1000ce
.line 546
invoke-virtual {p0, v1}, Lcom/stalker1607/olaStalker1607/MainActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;
move-result-object v0
const/4 v1, 0x0
.line 547
invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setCancelable(Z)Landroidx/appcompat/app/AlertDialog$Builder;
move-result-object v0
const v1, 0x7f1000cd
.line 548
invoke-virtual {p0, v1}, Lcom/stalker1607/olaStalker1607/MainActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;
move-result-object v0
const v1, 0x7f1000ca
.line 549
invoke-virtual {p0, v1}, Lcom/stalker1607/olaStalker1607/MainActivity;->getString(I)Ljava/lang/String;
move-result-object v1
new-instance v2, Lcom/stalker1607/olaStalker1607/MainActivity$6;
invoke-direct {v2, p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity$6;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;Ljava/lang/String;)V
invoke-virtual {v0, v1, v2}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;
move-result-object p1
const v0, 0x7f0d0001
.line 563
invoke-virtual {p1, v0}, Landroidx/appcompat/app/AlertDialog$Builder;->setIcon(I)Landroidx/appcompat/app/AlertDialog$Builder;
move-result-object p1
.line 564
invoke-virtual {p1}, Landroidx/appcompat/app/AlertDialog$Builder;->show()Landroidx/appcompat/app/AlertDialog;
return-void
.end method
.method private showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
.locals 1
.line 579
new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;
invoke-direct {v0, p1}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
.line 580
invoke-virtual {v0, p4}, Landroidx/appcompat/app/AlertDialog$Builder;->setIcon(I)Landroidx/appcompat/app/AlertDialog$Builder;
.line 581
invoke-virtual {v0, p2}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;
.line 582
invoke-virtual {v0, p3}, Landroidx/appcompat/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;
const/4 p1, 0x1
.line 584
invoke-virtual {v0, p1}, Landroidx/appcompat/app/AlertDialog$Builder;->setCancelable(Z)Landroidx/appcompat/app/AlertDialog$Builder;
const p1, 0x7f10009d
.line 587
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->getString(I)Ljava/lang/String;
move-result-object p1
new-instance p2, Lcom/stalker1607/olaStalker1607/MainActivity$7;
invoke-direct {p2, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$7;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
.line 586
invoke-virtual {v0, p1, p2}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;
.line 596
invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog$Builder;->create()Landroidx/appcompat/app/AlertDialog;
move-result-object p1
.line 597
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 p3, 0x13
if-lt p2, p3, :cond_0
.line 598
invoke-virtual {p1}, Landroidx/appcompat/app/AlertDialog;->getWindow()Landroid/view/Window;
move-result-object p2
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
check-cast p2, Landroid/view/Window;
invoke-virtual {p2}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;
move-result-object p2
const p3, 0x7f1100e0
iput p3, p2, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I
.line 600
:cond_0
invoke-virtual {p1}, Landroidx/appcompat/app/AlertDialog;->show()V
return-void
.end method
# virtual methods
.method public loadFrag(Landroidx/fragment/app/Fragment;Ljava/lang/String;Landroidx/fragment/app/FragmentManager;)V
.locals 2
const/4 v0, 0x0
.line 498
:goto_0
invoke-virtual {p3}, Landroidx/fragment/app/FragmentManager;->getBackStackEntryCount()I
move-result v1
if-ge v0, v1, :cond_0
.line 499
invoke-virtual {p3}, Landroidx/fragment/app/FragmentManager;->popBackStack()V
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 501
:cond_0
invoke-virtual {p3}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object p3
const v0, 0x7f080006
.line 503
invoke-virtual {p3, v0, p1, p2}, Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
.line 504
invoke-virtual {p3}, Landroidx/fragment/app/FragmentTransaction;->commit()I
.line 505
invoke-virtual {p0, p2}, Lcom/stalker1607/olaStalker1607/MainActivity;->setToolbarTitle(Ljava/lang/String;)V
return-void
.end method
.method public onBackPressed()V
.locals 4
.line 516
iget-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->drawer:Landroidx/drawerlayout/widget/DrawerLayout;
const v1, 0x800003
invoke-virtual {v0, v1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerOpen(I)Z
move-result v0
if-eqz v0, :cond_0
.line 517
iget-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->drawer:Landroidx/drawerlayout/widget/DrawerLayout;
invoke-virtual {v0, v1}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawer(I)V
goto :goto_0
.line 518
:cond_0
iget-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->getBackStackEntryCount()I
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_1
.line 519
iget-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->getFragments()Ljava/util/List;
move-result-object v0
iget-object v2, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
invoke-virtual {v2}, Landroidx/fragment/app/FragmentManager;->getBackStackEntryCount()I
move-result v2
sub-int/2addr v2, v1
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/Fragment;
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getTag()Ljava/lang/String;
move-result-object v0
.line 520
invoke-virtual {p0, v0}, Lcom/stalker1607/olaStalker1607/MainActivity;->setToolbarTitle(Ljava/lang/String;)V
.line 522
invoke-super {p0}, Lcom/stalker1607/olaStalker1607/BaseActivity;->onBackPressed()V
goto :goto_0
.line 524
:cond_1
iget-boolean v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->doubleBackToExitPressedOnce:Z
if-eqz v0, :cond_2
.line 527
invoke-super {p0}, Lcom/stalker1607/olaStalker1607/BaseActivity;->onBackPressed()V
return-void
.line 532
:cond_2
iput-boolean v1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->doubleBackToExitPressedOnce:Z
const/4 v0, 0x0
const-string v1, "Please click BACK again to exit"
.line 533
invoke-static {p0, v1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
.line 535
new-instance v0, Landroid/os/Handler;
invoke-direct {v0}, Landroid/os/Handler;-><init>()V
new-instance v1, Lcom/stalker1607/olaStalker1607/MainActivity$5;
invoke-direct {v1, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$5;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
const-wide/16 v2, 0x7d0
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
:goto_0
return-void
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.locals 6
const/4 v0, 0x1
const-string v1, "апапап."
invoke-static {p0, v1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
.line 176
invoke-super {p0, p1}, Lcom/stalker1607/olaStalker1607/BaseActivity;->onCreate(Landroid/os/Bundle;)V
.line 177
new-instance p1, Lcom/github/javiersantos/piracychecker/PiracyChecker;
invoke-direct {p1, p0}, Lcom/github/javiersantos/piracychecker/PiracyChecker;-><init>(Landroid/content/Context;)V
sget-object v0, Lcom/github/javiersantos/piracychecker/enums/Display;->ACTIVITY:Lcom/github/javiersantos/piracychecker/enums/Display;
invoke-virtual {p1, v0}, Lcom/github/javiersantos/piracychecker/PiracyChecker;->display(Lcom/github/javiersantos/piracychecker/enums/Display;)Lcom/github/javiersantos/piracychecker/PiracyChecker;
move-result-object p1
new-instance v0, Lcom/stalker1607/olaStalker1607/MainActivity$1;
invoke-direct {v0, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$1;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
invoke-virtual {p1, v0}, Lcom/github/javiersantos/piracychecker/PiracyChecker;->callback(Lcom/github/javiersantos/piracychecker/callbacks/PiracyCheckerCallback;)Lcom/github/javiersantos/piracychecker/PiracyChecker;
move-result-object p1
.line 193
invoke-virtual {p1}, Lcom/github/javiersantos/piracychecker/PiracyChecker;->start()V
.line 236
invoke-static {p0}, Lio/monedata/Monedata;->start(Landroid/content/Context;)V
.line 237
sget-object p1, Lio/monedata/Monedata;->Consent:Lio/monedata/consent/ConsentManager;
const/4 v0, 0x1
invoke-virtual {p1, p0, v0}, Lio/monedata/consent/ConsentManager;->set(Landroid/content/Context;Z)V
const p1, 0x7f0b0020
.line 243
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->setContentView(I)V
.line 249
invoke-static {p0}, Lcom/stalker1607/util/IsRTL;->ifSupported(Landroid/app/Activity;)V
const p1, 0x7f080194
.line 250
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->findViewById(I)Landroid/view/View;
move-result-object p1
move-object v3, p1
check-cast v3, Landroidx/appcompat/widget/Toolbar;
.line 252
invoke-virtual {p0, v3}, Lcom/stalker1607/olaStalker1607/MainActivity;->setSupportActionBar(Landroidx/appcompat/widget/Toolbar;)V
const p1, 0x7f080050
.line 256
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/LinearLayout;
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->mAdViewLayout:Landroid/widget/LinearLayout;
.line 257
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object p1
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
.line 258
invoke-static {}, Lcom/stalker1607/olaStalker1607/MyApplication;->getInstance()Lcom/stalker1607/olaStalker1607/MyApplication;
move-result-object p1
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->MyApp:Lcom/stalker1607/olaStalker1607/MyApplication;
const p1, 0x7f0800f5
.line 259
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Lcom/google/android/material/navigation/NavigationView;
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->navigationView:Lcom/google/android/material/navigation/NavigationView;
const p1, 0x7f080094
.line 260
invoke-virtual {p0, p1}, Lcom/stalker1607/olaStalker1607/MainActivity;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroidx/drawerlayout/widget/DrawerLayout;
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->drawer:Landroidx/drawerlayout/widget/DrawerLayout;
.line 262
iget-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->navigationView:Lcom/google/android/material/navigation/NavigationView;
const/4 v0, 0x0
invoke-virtual {p1, v0}, Lcom/google/android/material/navigation/NavigationView;->setItemIconTintList(Landroid/content/res/ColorStateList;)V
.line 265
:try_start_0
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p1
.line 266
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getPackageName()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
invoke-virtual {p1, v0, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object p1
iget p1, p1, Landroid/content/pm/PackageInfo;->versionCode:I
iput p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->versionCode:I
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
.line 269
invoke-virtual {p1}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V
.line 274
:goto_0
iget-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->navigationView:Lcom/google/android/material/navigation/NavigationView;
new-instance v0, Lcom/stalker1607/olaStalker1607/MainActivity$2;
invoke-direct {v0, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$2;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
invoke-virtual {p1, v0}, Lcom/google/android/material/navigation/NavigationView;->setNavigationItemSelectedListener(Lcom/google/android/material/navigation/NavigationView$OnNavigationItemSelectedListener;)V
.line 323
new-instance p1, Landroidx/appcompat/app/ActionBarDrawerToggle;
iget-object v2, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->drawer:Landroidx/drawerlayout/widget/DrawerLayout;
const v4, 0x7f100099
const v5, 0x7f100098
move-object v0, p1
move-object v1, p0
invoke-direct/range {v0 .. v5}, Landroidx/appcompat/app/ActionBarDrawerToggle;-><init>(Landroid/app/Activity;Landroidx/drawerlayout/widget/DrawerLayout;Landroidx/appcompat/widget/Toolbar;II)V
.line 326
iget-object v0, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->drawer:Landroidx/drawerlayout/widget/DrawerLayout;
invoke-virtual {v0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->addDrawerListener(Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;)V
.line 327
invoke-virtual {p1}, Landroidx/appcompat/app/ActionBarDrawerToggle;->syncState()V
.line 329
new-instance p1, Lcom/stalker1607/fragment/CategoryFragment;
invoke-direct {p1}, Lcom/stalker1607/fragment/CategoryFragment;-><init>()V
const v0, 0x7f100071
.line 330
invoke-virtual {p0, v0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getString(I)Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->fragmentManager:Landroidx/fragment/app/FragmentManager;
invoke-virtual {p0, p1, v0, v1}, Lcom/stalker1607/olaStalker1607/MainActivity;->loadFrag(Landroidx/fragment/app/Fragment;Ljava/lang/String;Landroidx/fragment/app/FragmentManager;)V
.line 332
invoke-static {p0}, Lcom/stalker1607/util/NetworkUtils;->isConnected(Landroid/content/Context;)Z
move-result p1
if-eqz p1, :cond_0
.line 333
invoke-direct {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getAppConsent()V
.line 336
:cond_0
new-instance p1, Lcom/stalker1607/olaStalker1607/MainActivity$3;
invoke-direct {p1, p0}, Lcom/stalker1607/olaStalker1607/MainActivity$3;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;)V
iput-object p1, p0, Lcom/stalker1607/olaStalker1607/MainActivity;->reciver:Landroid/content/BroadcastReceiver;
return-void
.end method
.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
.locals 3
.line 611
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getMenuInflater()Landroid/view/MenuInflater;
move-result-object v0
const v1, 0x7f0c0001
.line 612
invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V
const v0, 0x7f080140
.line 613
invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
move-result-object v0
const v1, 0x7f080051
.line 615
invoke-interface {p1, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
const v1, 0x7f080130
.line 616
invoke-interface {p1, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;
move-result-object v1
const/4 v2, 0x1
.line 617
invoke-interface {v1, v2}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;
const/4 v2, 0x0
.line 620
invoke-interface {v0, v2}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;
.line 621
invoke-interface {v0}, Landroid/view/MenuItem;->getActionView()Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/appcompat/widget/SearchView;
.line 624
new-instance v0, Lcom/stalker1607/olaStalker1607/MainActivity$8;
invoke-direct {v0, p0, v1}, Lcom/stalker1607/olaStalker1607/MainActivity$8;-><init>(Lcom/stalker1607/olaStalker1607/MainActivity;Landroid/view/MenuItem;)V
invoke-interface {v1, v0}, Landroid/view/MenuItem;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Landroid/view/MenuItem;
.line 646
invoke-super {p0, p1}, Lcom/stalker1607/olaStalker1607/BaseActivity;->onCreateOptionsMenu(Landroid/view/Menu;)Z
move-result p1
return p1
.end method
.method public setToolbarTitle(Ljava/lang/String;)V
.locals 1
.line 509
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;
move-result-object v0
if-eqz v0, :cond_0
.line 510
invoke-virtual {p0}, Lcom/stalker1607/olaStalker1607/MainActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;
move-result-object v0
invoke-virtual {v0, p1}, Landroidx/appcompat/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V
:cond_0
return-void
.end method
Add(MainForm,5558867,105,56)
{
Width=1131
Height=685
}
Add(Label,14139912,231,112)
{
Width=1115
Height=90
Align=2
Caption=""
AutoSize=1
}
Add(Memo,13145580,1057,147)
{
Top=90
Width=1115
Height=556
Align=5
ScrollBars=3
Point(doLoad)
}
Add(BlockFind,1350044,861,168)
{
Delete=0
StartBlock="const-string v1, ""
EndBlock="show()V"
link(onSearch,13145580:doText,[])
link(Text,14461225:Text,[])
}
Add(StrList,14461225,861,77)
{
Point(doGetString)
Point(onGetString)
Point(doReplace)
Point(doLoad)
Point(doSave)
link(FileName,7646630:Value,[(874,65)(776,65)(776,192)(713,192)])
}
Add(Hub,13502093,798,147)
{
OutCount=4
link(onEvent1,14461225:doLoad,[(836,153)(836,125)])
link(onEvent2,1350044:doSearch,[(836,160)(836,174)])
}
Add(Button,1032059,350,133)
{
Left=290
Top=5
Width=100
Caption="Папка"
link(onClick,1584642:doBrowse,[])
}
Add(Button,1454278,476,133)
{
Left=290
Top=30
Width=100
Enabled=1
Caption="Заменить"
Point(doEnabled)
link(onClick,562048:doEvent1,[])
}
Add(Label,15810939,350,98)
{
Left=5
Top=10
Width=49
Height=17
Caption="Каталог:"
}
Add(Edit,8494145,434,133)
{
Left=60
Top=10
Width=195
Text=""
link(onChange,1454278:doEnabled,[])
}
Add(Browse,1584642,392,133)
{
Title="Select Folder"
NewDirButton=1
link(onBrowse,8494145:doText,[])
}
Add(FileSearch,9717498,546,140)
{
Ext="*MainActivity.smali"
TimeType=1
link(onSearch,3380521:doAdd,[])
link(onEndSearch,8452435:doStart,[(587,153)(587,188)(429,188)(429,216)])
link(Dir,8494145:Text,[(559,121)(507,121)(507,177)(440,177)])
}
Add(Memory,7646630,707,147)
{
link(onData,13502093:doEvent1,[])
}
Add(Message,6502705,637,280)
{
}
Add(FormatStr,14622508,595,280)
{
Mask="Обработано файлов - %1"
link(onFString,6502705:doMessage,[])
}
Add(InlineCode,6130277,644,224)
{
WorkPoints=#6:doWork|
EventPoints=#10:onProgress|0:|
DataPoints=#6:Param1|6:Param2|
Code=#15:unit HiAsmUnit;|0:|9:interface|0:|21:uses kol,Share,Debug;|0:|4:type|28: THiAsmClass = class(TDebug)|10: private|8: |10: public|21: Param1: THI_Event;|22: Param2: THI_Event; |23: onProgress: THI_Event;|3: |49: Procedure doWork(var _Data:TData; Index:Word); |0:|5: end;|0:|2: |15: implementation|0:|3: |30:Procedure THiAsmClass.doWork; |5: var |19:Count,LEn: Integer;|0:|5:begin|33:Count:= ToIntegerEvent ( Param1);|31:LEn:= ToIntegerEvent ( Param2);|55: _hi_OnEvent(onProgress,Round((LEn / Count) * 100)); |7: end;|0:|0:|4:end.|
link(onProgress,8488532:doWork2,[])
link(Param1,12985465:Var2,[])
link(Param2,2714823:Var1,[(657,212)(545,212)])
}
Add(StrList,3380521,637,140)
{
Point(doGetString)
Point(onGetString)
link(onGetString,7646630:doValue,[])
}
Add(Hub,7608367,602,175)
{
link(onEvent1,3380521:doGetString,[(626,181)(626,174)])
link(onEvent2,6130277:doWork,[(630,188)(630,230)])
}
Add(Thread,8452435,455,210)
{
Delay=0
FastStop=0
link(onExec,2033947:doFor,[(492,216)(492,244)])
}
Add(For,2033947,497,238)
{
link(onEvent,6027876:doData,[])
link(onStop,14622508:doString,[(562,251)(562,286)])
link(End,12985465:Var1,[(510,201)])
}
Add(DoData,6027876,553,238)
{
link(onEventData,7608367:doEvent1,[(593,244)(593,181)])
link(Data,2714823:Var3,[(559,226)])
}
Add(GetDataEx,2714823,539,221)
{
Angle=3
link(Data,2033947:Position,[(534,226)(534,282)(503,282)])
}
Add(GetDataEx,12985465,644,196)
{
link(Data,3380521:Count,[])
}
Add(Hub,562048,518,133)
{
link(onEvent1,8488532:doWork1,[(688,139)])
link(onEvent2,9717498:doSearch,[])
}
Add(ProgressBarRush,3433553,700,224)
{
Left=460
Top=30
Width=470
}
Add(HubEx,8488532,684,224)
{
Angle=1
link(onEvent,3433553:doPosition,[(688,230)])
}