Udokanec, прежде всего вам надо понятно для коллег объяснять ваши хотелки.
Прочитайте сами ваш пост, это не более чем кусок потока сознания вырванный без начала и окончания.
Этот топик читают: Гость
Ответов: 8926
Рейтинг: 823
|
|||
карма: 19 |
|
Ответов: 287
Рейтинг: 5
|
|||
Есть много строчный текст. Мне нужно (спарсить,выдрать и т.д.) блок выделенный прямоугольником
BlocFindом не получается.Регулярное выражение \.method (.+) onCreate\(Landroid/os/Bundle;\)V\\s+.locals \d\\s+const/\d v\d, \dx\d\\s+const-string v\d, "(.+)." нормально не работает Текст 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, "Garant." 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; Редактировалось 5 раз(а), последний 2022-07-16 14:35:39 |
|||
карма: 0 |
|
Ответов: 793
Рейтинг: 168
|
|||
Udokanec писал(а): Как все таки распарсить много строчный текстЛеонид прав. Ты можешь показать, что в этом блоке меняется, а что нет. И почему BlockFind у тебя не работает?
|
|||
карма: 16 |
|
Ответов: 287
Рейтинг: 5
|
|||
Блин но как так-то.Я целый день ип-ся с BlockFind подставлял \r\n все такое потом Мучился составлял рег.выражение и все зря
Мне нужно в этом блоке удалить invoke-virtual {v0}, Landroid/widget/Toast;->show()V.Именно в этом.Потому что таких блоков может быть несколько.А различее именно в const-string v1, "Garant." |
|||
карма: 0 |
|
Ответов: 793
Рейтинг: 168
|
|||
Udokanec писал(а): Мне нужно в этом блоке удалить invoke-virtual {v0}, Landroid/widget/Toast;->show()V
|
|||
карма: 16 |
|
Ответов: 287
Рейтинг: 5
|
|||
Текст .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
|
|||
карма: 0 |
|
Ответов: 793
Рейтинг: 168
|
|||
Udokanec, Ну что мне с тобой делать? Нет в этом тексте двух блоков, которые ты обозначил красной рамкой в своём сообщении №47 https://forum.hiasm.com/post/312011
Есть другие, похожие.
|
|||
карма: 16 |
| ||
Голосовали: | Udokanec |
Ответов: 287
Рейтинг: 5
|
|||
Согласен.Я чуть чуть изменил атрибуты поиска.Но выводится только один найденный блок-Последний.А мне надо два.
|
|||
карма: 0 |
|
Ответов: 793
Рейтинг: 168
|
|||
Udokanec писал(а): Я чуть чуть изменил атрибуты поиска.Но выводится только один найденный блок-Последний.А мне надо два.Я не знаю, что ты меняешь, но у меня всё находится.
|
|||
карма: 16 |
| ||
Голосовали: | Udokanec |
Ответов: 287
Рейтинг: 5
|
|||
Все вроде норм но удалять invoke-virtual {v0}, Landroid/widget/Toast;->show()V нужно в одном блоке из двух на выбор
|
|||
карма: 0 |
|
55