BaseFragment.smali
.class public Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.super Ljava/lang/Object;
.source "BaseFragment.java"
# instance fields
.field protected actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
.field protected arguments:Landroid/os/Bundle;
.field protected classGuid:I
.field protected currentAccount:I
.field protected defaultActionBarBackgroundDrawable:Landroid/graphics/drawable/Drawable;
.field private finishing:Z
.field protected fragmentView:Landroid/view/View;
.field protected gameActionBarBackgroundDrawable:Landroid/graphics/drawable/Drawable;
.field protected hasOwnBackground:Z
.field protected inPreviewMode:Z
.field private isFinished:Z
.field protected isPaused:Z
.field protected parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
.field protected swipeBackEnabled:Z
.field private unbinder:Lbutterknife/Unbinder;
.field protected visibleDialog:Landroid/app/Dialog;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 2
.line 92
const/4 v0, 0x0
invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;-><init>(Landroid/os/Bundle;)V
.line 93
return-void
.end method
.method public constructor <init>(Landroid/os/Bundle;)V
.registers 4
.param p1, "args" # Landroid/os/Bundle;
.line 95
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 64
sget v0, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
iput v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->currentAccount:I
.line 78
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->swipeBackEnabled:Z
.line 80
const/4 v1, 0x0
iput-boolean v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->hasOwnBackground:Z
.line 82
iput-boolean v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->isPaused:Z
.line 96
iput-object p1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->arguments:Landroid/os/Bundle;
.line 97
invoke-static {}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->generateClassGuid()I
move-result v0
iput v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->classGuid:I
.line 99
iput-boolean v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->isFinished:Z
.line 100
iput-boolean v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->finishing:Z
.line 101
return-void
.end method
# virtual methods
.method public canBeginSlide()Z
.registers 2
.line 495
const/4 v0, 0x1
return v0
.end method
.method protected clearViews()V
.registers 4
.line 173
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
const/4 v1, 0x0
if-eqz v0, :cond_1c
.line 174
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
.line 175
.local v0, "parent":Landroid/view/ViewGroup;
if-eqz v0, :cond_1a
.line 177
:try_start_d
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->onRemoveFromParent()V
.line 178
iget-object v2, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
:try_end_15
.catch Ljava/lang/Exception; {:try_start_d .. :try_end_15} :catch_16
.line 181
goto :goto_1a
.line 179
:catch_16
move-exception v2
.line 180
.local v2, "e":Ljava/lang/Exception;
invoke-static {v2}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 183
.end local v2 # "e":Ljava/lang/Exception;
:cond_1a
:goto_1a
iput-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
.line 186
.end local v0 # "parent":Landroid/view/ViewGroup;
:cond_1c
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
if-eqz v0, :cond_34
.line 187
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getParent()Landroid/view/ViewParent;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
.line 188
.restart local v0 # "parent":Landroid/view/ViewGroup;
if-eqz v0, :cond_32
.line 190
:try_start_28
iget-object v2, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
:try_end_2d
.catch Ljava/lang/Exception; {:try_start_28 .. :try_end_2d} :catch_2e
.line 193
goto :goto_32
.line 191
:catch_2e
move-exception v2
.line 192
.restart local v2 # "e":Ljava/lang/Exception;
invoke-static {v2}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 195
.end local v2 # "e":Ljava/lang/Exception;
:cond_32
:goto_32
iput-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
.line 197
.end local v0 # "parent":Landroid/view/ViewGroup;
:cond_34
iput-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
.line 199
return-void
.end method
.method protected createActionBar(Landroid/content/Context;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
.registers 6
.param p1, "context" # Landroid/content/Context;
.line 275
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->createActionBarBackgroundDrawable()V
.line 277
new-instance v0, Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-direct {v0, p1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;-><init>(Landroid/content/Context;)V
.line 280
.local v0, "actionBar":Lim/tpelyyftgw/ui/actionbar/ActionBar;
const v1, 0x7f060186
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setBackgroundResource(I)V
.line 281
const-string v1, "actionBarDefaultSelector"
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v1
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setItemsBackgroundColor(IZ)V
.line 282
const-string v1, "actionBarActionModeDefaultSelector"
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v1
const/4 v3, 0x1
invoke-virtual {v0, v1, v3}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setItemsBackgroundColor(IZ)V
.line 283
const-string v1, "actionBarDefaultIcon"
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1, v2}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setItemsColor(IZ)V
.line 284
const-string v1, "actionBarActionModeDefaultIcon"
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1, v3}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setItemsColor(IZ)V
.line 285
iget-boolean v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->inPreviewMode:Z
if-eqz v1, :cond_3b
.line 286
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setOccupyStatusBar(Z)V
.line 288
:cond_3b
iget-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v1, :cond_48
.line 289
const-string v2, "actionBarDefault"
invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v2
invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->setBackgroundColor(I)V
.line 291
:cond_48
return-object v0
.end method
.method protected createActionBarBackgroundDrawable()V
.registers 6
.line 262
const-string v0, "actionBarDefault"
invoke-static {v0}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v0
const/4 v1, 0x0
invoke-static {v1, v0}, Lim/tpelyyftgw/ui/actionbar/Theme;->createRoundRectDrawable(FI)Landroid/graphics/drawable/Drawable;
move-result-object v0
iput-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->defaultActionBarBackgroundDrawable:Landroid/graphics/drawable/Drawable;
.line 263
new-instance v0, Landroid/graphics/drawable/GradientDrawable;
sget-object v1, Landroid/graphics/drawable/GradientDrawable$Orientation;->LEFT_RIGHT:Landroid/graphics/drawable/GradientDrawable$Orientation;
const/4 v2, 0x2
new-array v2, v2, [I
.line 265
const-string v3, "#FFFE6869"
invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
move-result v3
const/4 v4, 0x0
aput v3, v2, v4
const-string v3, "#FFFE856B"
invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
move-result v3
const/4 v4, 0x1
aput v3, v2, v4
invoke-direct {v0, v1, v2}, Landroid/graphics/drawable/GradientDrawable;-><init>(Landroid/graphics/drawable/GradientDrawable$Orientation;[I)V
iput-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->gameActionBarBackgroundDrawable:Landroid/graphics/drawable/Drawable;
.line 266
return-void
.end method
.method public createView(Landroid/content/Context;)Landroid/view/View;
.registers 3
.param p1, "context" # Landroid/content/Context;
.line 131
const/4 v0, 0x0
return-object v0
.end method
.method public dismissCurrentDialog()V
.registers 2
.line 473
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
if-nez v0, :cond_5
.line 474
return-void
.line 477
:cond_5
:try_start_5
invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
.line 478
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
:try_end_b
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_b} :catch_c
.line 481
goto :goto_10
.line 479
:catch_c
move-exception v0
.line 480
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 482
.end local v0 # "e":Ljava/lang/Exception;
:goto_10
return-void
.end method
.method public dismissDialogOnPause(Landroid/app/Dialog;)Z
.registers 3
.param p1, "dialog" # Landroid/app/Dialog;
.line 491
const/4 v0, 0x1
return v0
.end method
.method public extendActionMode(Landroid/view/Menu;)Z
.registers 3
.param p1, "menu" # Landroid/view/Menu;
.line 596
const/4 v0, 0x0
return v0
.end method
.method public finishFragment()V
.registers 2
.line 303
const/4 v0, 0x1
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->finishFragment(Z)V
.line 304
return-void
.end method
.method public finishFragment(Z)V
.registers 4
.param p1, "animated" # Z
.line 307
iget-boolean v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->isFinished:Z
if-nez v0, :cond_10
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-nez v0, :cond_9
goto :goto_10
.line 310
:cond_9
const/4 v1, 0x1
iput-boolean v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->finishing:Z
.line 311
invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->closeLastFragment(Z)V
.line 312
return-void
.line 308
:cond_10
:goto_10
return-void
.end method
.method public finishFragmentFromUp(Z)V
.registers 4
.param p1, "animated" # Z
.line 315
iget-boolean v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->isFinished:Z
if-nez v0, :cond_10
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-nez v0, :cond_9
goto :goto_10
.line 318
:cond_9
const/4 v1, 0x1
iput-boolean v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->finishing:Z
.line 319
invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->closeLastFragmentFromUp(Z)V
.line 320
return-void
.line 316
:cond_10
:goto_10
return-void
.end method
.method public finishPreviewFragment()V
.registers 2
.line 299
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->finishPreviewFragment()V
.line 300
return-void
.end method
.method public getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
.registers 2
.line 604
iget v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getInstance(I)Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
return-object v0
.end method
.method public getActionBar()Lim/tpelyyftgw/ui/actionbar/ActionBar;
.registers 2
.line 123
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
return-object v0
.end method
.method public getArguments()Landroid/os/Bundle;
.registers 2
.line 135
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->arguments:Landroid/os/Bundle;
return-object v0
.end method
.method public getClassGuid()I
.registers 2
.line 143
iget v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->classGuid:I
return v0
.end method
.method protected getConnectionsManager()Lim/tpelyyftgw/tgnet/ConnectionsManager;
.registers 2
.line 620
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getConnectionsManager()Lim/tpelyyftgw/tgnet/ConnectionsManager;
move-result-object v0
return-object v0
.end method
.method protected getContactsController()Lim/tpelyyftgw/messenger/ContactsController;
.registers 2
.line 612
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getContactsController()Lim/tpelyyftgw/messenger/ContactsController;
move-result-object v0
return-object v0
.end method
.method public getCurrentAccount()I
.registers 2
.line 139
iget v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->currentAccount:I
return v0
.end method
.method protected getDownloadController()Lim/tpelyyftgw/messenger/DownloadController;
.registers 2
.line 648
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getDownloadController()Lim/tpelyyftgw/messenger/DownloadController;
move-result-object v0
return-object v0
.end method
.method protected getFileLoader()Lim/tpelyyftgw/messenger/FileLoader;
.registers 2
.line 640
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getFileLoader()Lim/tpelyyftgw/messenger/FileLoader;
move-result-object v0
return-object v0
.end method
.method public getFragmentForAlert(I)Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.registers 4
.param p1, "offset" # I
.line 393
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v0, :cond_25
iget-object v0, v0, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->fragmentsStack:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
add-int/lit8 v1, p1, 0x1
if-gt v0, v1, :cond_f
goto :goto_25
.line 396
:cond_f
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
iget-object v0, v0, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->fragmentsStack:Ljava/util/ArrayList;
iget-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
iget-object v1, v1, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->fragmentsStack:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
add-int/lit8 v1, v1, -0x2
sub-int/2addr v1, p1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;
return-object v0
.line 394
:cond_25
:goto_25
return-object p0
.end method
.method public getFragmentView()Landroid/view/View;
.registers 2
.line 127
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
return-object v0
.end method
.method protected getLocationController()Lim/tpelyyftgw/messenger/LocationController;
.registers 2
.line 624
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getLocationController()Lim/tpelyyftgw/messenger/LocationController;
move-result-object v0
return-object v0
.end method
.method public getMediaController()Lim/tpelyyftgw/messenger/MediaController;
.registers 2
.line 660
invoke-static {}, Lim/tpelyyftgw/messenger/MediaController;->getInstance()Lim/tpelyyftgw/messenger/MediaController;
move-result-object v0
return-object v0
.end method
.method protected getMediaDataController()Lim/tpelyyftgw/messenger/MediaDataController;
.registers 2
.line 616
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getMediaDataController()Lim/tpelyyftgw/messenger/MediaDataController;
move-result-object v0
return-object v0
.end method
.method protected getMessagesController()Lim/tpelyyftgw/messenger/MessagesController;
.registers 2
.line 608
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getMessagesController()Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v0
return-object v0
.end method
.method protected getMessagesStorage()Lim/tpelyyftgw/messenger/MessagesStorage;
.registers 2
.line 632
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getMessagesStorage()Lim/tpelyyftgw/messenger/MessagesStorage;
move-result-object v0
return-object v0
.end method
.method public getNavigationBarColor()I
.registers 2
.line 677
const-string/jumbo v0, "windowBackgroundGray"
invoke-static {v0}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v0
return v0
.end method
.method public getNotificationCenter()Lim/tpelyyftgw/messenger/NotificationCenter;
.registers 2
.line 656
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getNotificationCenter()Lim/tpelyyftgw/messenger/NotificationCenter;
move-result-object v0
return-object v0
.end method
.method protected getNotificationsController()Lim/tpelyyftgw/messenger/NotificationsController;
.registers 2
.line 628
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getNotificationsController()Lim/tpelyyftgw/messenger/NotificationsController;
move-result-object v0
return-object v0
.end method
.method protected getNotificationsSettings()Landroid/content/SharedPreferences;
.registers 2
.line 652
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getNotificationsSettings()Landroid/content/SharedPreferences;
move-result-object v0
return-object v0
.end method
.method public getParentActivity()Landroidx/fragment/app/FragmentActivity;
.registers 2
.line 453
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v0, :cond_7
.line 454
iget-object v0, v0, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->parentActivity:Landroidx/fragment/app/FragmentActivity;
return-object v0
.line 456
:cond_7
const/4 v0, 0x0
return-object v0
.end method
.method public getParentLayout()Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
.registers 2
.line 119
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
return-object v0
.end method
.method protected getSecretChatHelper()Lim/tpelyyftgw/messenger/SecretChatHelper;
.registers 2
.line 644
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getSecretChatHelper()Lim/tpelyyftgw/messenger/SecretChatHelper;
move-result-object v0
return-object v0
.end method
.method protected getSendMessagesHelper()Lim/tpelyyftgw/messenger/SendMessagesHelper;
.registers 2
.line 636
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getSendMessagesHelper()Lim/tpelyyftgw/messenger/SendMessagesHelper;
move-result-object v0
return-object v0
.end method
.method public getThemeDescriptions()[Lim/tpelyyftgw/ui/actionbar/ThemeDescription;
.registers 2
.line 600
const/4 v0, 0x0
new-array v0, v0, [Lim/tpelyyftgw/ui/actionbar/ThemeDescription;
return-object v0
.end method
.method public getUserConfig()Lim/tpelyyftgw/messenger/UserConfig;
.registers 2
.line 664
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getUserConfig()Lim/tpelyyftgw/messenger/UserConfig;
move-result-object v0
return-object v0
.end method
.method public getVisibleDialog()Landroid/app/Dialog;
.registers 2
.line 588
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
return-object v0
.end method
.method public getWalletController()Lim/tpelyyftgw/ui/activities/wallet/WalletController;
.registers 2
.line 668
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getAccountInstance()Lim/tpelyyftgw/messenger/AccountInstance;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/messenger/AccountInstance;->getWalletController()Lim/tpelyyftgw/ui/activities/wallet/WalletController;
move-result-object v0
return-object v0
.end method
.method public isFinishing()Z
.registers 2
.line 337
iget-boolean v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->finishing:Z
return v0
.end method
.method public synthetic lambda$showDialog$0$BaseFragment(Landroid/content/DialogInterface$OnDismissListener;Landroid/content/DialogInterface;)V
.registers 4
.param p1, "onDismissListener" # Landroid/content/DialogInterface$OnDismissListener;
.param p2, "dialog1" # Landroid/content/DialogInterface;
.line 569
if-eqz p1, :cond_5
.line 570
invoke-interface {p1, p2}, Landroid/content/DialogInterface$OnDismissListener;->onDismiss(Landroid/content/DialogInterface;)V
.line 572
:cond_5
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->onDialogDismiss(Landroid/app/Dialog;)V
.line 573
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
.line 574
return-void
.end method
.method public movePreviewFragment(F)V
.registers 3
.param p1, "dy" # F
.line 295
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->movePreviewFragment(F)V
.line 296
return-void
.end method
.method public needDelayOpenAnimation()Z
.registers 2
.line 360
const/4 v0, 0x0
return v0
.end method
.method public onActivityResultFragment(IILandroid/content/Intent;)V
.registers 4
.param p1, "requestCode" # I
.param p2, "resultCode" # I
.param p3, "data" # Landroid/content/Intent;
.line 414
return-void
.end method
.method public onBackPressed()Z
.registers 2
.line 409
const/4 v0, 0x1
return v0
.end method
.method protected onBecomeFullyHidden()V
.registers 1
.line 535
return-void
.end method
.method protected onBecomeFullyVisible()V
.registers 5
.line 521
sget-object v0, Lim/tpelyyftgw/messenger/ApplicationLoader;->applicationContext:Landroid/content/Context;
const-string v1, "accessibility"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/accessibility/AccessibilityManager;
.line 522
.local v0, "mgr":Landroid/view/accessibility/AccessibilityManager;
invoke-virtual {v0}, Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z
move-result v1
if-eqz v1, :cond_23
.line 523
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getActionBar()Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v1
.line 524
.local v1, "actionBar":Lim/tpelyyftgw/ui/actionbar/ActionBar;
if-eqz v1, :cond_23
.line 525
invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getTitle()Ljava/lang/String;
move-result-object v2
.line 526
.local v2, "title":Ljava/lang/String;
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v3
if-nez v3, :cond_23
.line 527
invoke-virtual {p0, v2}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->setParentActivityTitle(Ljava/lang/CharSequence;)V
.line 531
.end local v1 # "actionBar":Lim/tpelyyftgw/ui/actionbar/ActionBar;
.end local v2 # "title":Ljava/lang/String;
:cond_23
return-void
.end method
.method public onBeginSlide()V
.registers 2
.line 500
:try_start_0
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
if-eqz v0, :cond_14
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z
move-result v0
if-eqz v0, :cond_14
.line 501
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
.line 502
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
:try_end_14
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_14} :catch_15
.line 506
:cond_14
goto :goto_19
.line 504
:catch_15
move-exception v0
.line 505
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 507
.end local v0 # "e":Ljava/lang/Exception;
:goto_19
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
if-eqz v0, :cond_20
.line 508
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->onPause()V
.line 510
:cond_20
return-void
.end method
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
.registers 2
.param p1, "newConfig" # Landroid/content/res/Configuration;
.line 401
return-void
.end method
.method protected onCustomTransitionAnimation(ZLjava/lang/Runnable;)Landroid/animation/AnimatorSet;
.registers 4
.param p1, "isOpen" # Z
.param p2, "callback" # Ljava/lang/Runnable;
.line 538
const/4 v0, 0x0
return-object v0
.end method
.method protected onDialogDismiss(Landroid/app/Dialog;)V
.registers 2
.param p1, "dialog" # Landroid/app/Dialog;
.line 585
return-void
.end method
.method public onFragmentCreate()Z
.registers 2
.line 341
const/4 v0, 0x1
return v0
.end method
.method public onFragmentDestroy()V
.registers 3
.line 345
iget v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getInstance(I)Lim/tpelyyftgw/tgnet/ConnectionsManager;
move-result-object v0
iget v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->classGuid:I
invoke-virtual {v0, v1}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->cancelRequestsForGuid(I)V
.line 346
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->isFinished:Z
.line 347
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
if-eqz v0, :cond_16
.line 348
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setEnabled(Z)V
.line 350
:cond_16
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->unbinder:Lbutterknife/Unbinder;
if-eqz v0, :cond_22
.line 352
:try_start_1a
invoke-interface {v0}, Lbutterknife/Unbinder;->unbind()V
:try_end_1d
.catch Ljava/lang/Exception; {:try_start_1a .. :try_end_1d} :catch_1e
.line 355
goto :goto_22
.line 353
:catch_1e
move-exception v0
.line 354
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 357
.end local v0 # "e":Ljava/lang/Exception;
:cond_22
:goto_22
return-void
.end method
.method public onLowMemory()V
.registers 1
.line 543
return-void
.end method
.method public onPause()V
.registers 2
.line 378
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
if-eqz v0, :cond_7
.line 379
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->onPause()V
.line 381
:cond_7
const/4 v0, 0x1
iput-boolean v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->isPaused:Z
.line 383
:try_start_a
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
if-eqz v0, :cond_26
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z
move-result v0
if-eqz v0, :cond_26
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->dismissDialogOnPause(Landroid/app/Dialog;)Z
move-result v0
if-eqz v0, :cond_26
.line 384
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
.line 385
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
:try_end_26
.catch Ljava/lang/Exception; {:try_start_a .. :try_end_26} :catch_27
.line 389
:cond_26
goto :goto_2b
.line 387
:catch_27
move-exception v0
.line 388
.local v0, "e":Ljava/lang/Exception;
invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 390
.end local v0 # "e":Ljava/lang/Exception;
:goto_2b
return-void
.end method
.method protected onRemoveFromParent()V
.registers 1
.line 206
return-void
.end method
.method public onRequestPermissionsResultFragment(I[Ljava/lang/String;[I)V
.registers 4
.param p1, "requestCode" # I
.param p2, "permissions" # [Ljava/lang/String;
.param p3, "grantResults" # [I
.line 418
return-void
.end method
.method public onResume()V
.registers 2
.line 364
const/4 v0, 0x0
iput-boolean v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->isPaused:Z
.line 365
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->setStatusBarTheme()V
.line 366
return-void
.end method
.method protected onTransitionAnimationEnd(ZZ)V
.registers 3
.param p1, "isOpen" # Z
.param p2, "backward" # Z
.line 518
return-void
.end method
.method protected onTransitionAnimationStart(ZZ)V
.registers 3
.param p1, "isOpen" # Z
.param p2, "backward" # Z
.line 514
return-void
.end method
.method public presentFragment(Lim/tpelyyftgw/ui/actionbar/BaseFragment;)Z
.registers 3
.param p1, "fragment" # Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.line 437
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v0, :cond_c
invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->presentFragment(Lim/tpelyyftgw/ui/actionbar/BaseFragment;)Z
move-result v0
if-eqz v0, :cond_c
const/4 v0, 0x1
goto :goto_d
:cond_c
const/4 v0, 0x0
:goto_d
return v0
.end method
.method public presentFragment(Lim/tpelyyftgw/ui/actionbar/BaseFragment;Z)Z
.registers 4
.param p1, "fragment" # Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.param p2, "removeLast" # Z
.line 441
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v0, :cond_c
invoke-virtual {v0, p1, p2}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->presentFragment(Lim/tpelyyftgw/ui/actionbar/BaseFragment;Z)Z
move-result v0
if-eqz v0, :cond_c
const/4 v0, 0x1
goto :goto_d
:cond_c
const/4 v0, 0x0
:goto_d
return v0
.end method
.method public presentFragment(Lim/tpelyyftgw/ui/actionbar/BaseFragment;ZZ)Z
.registers 10
.param p1, "fragment" # Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.param p2, "removeLast" # Z
.param p3, "forceWithoutAnimation" # Z
.line 445
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v0, :cond_11
const/4 v4, 0x1
const/4 v5, 0x0
move-object v1, p1
move v2, p2
move v3, p3
invoke-virtual/range {v0 .. v5}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->presentFragment(Lim/tpelyyftgw/ui/actionbar/BaseFragment;ZZZZ)Z
move-result v0
if-eqz v0, :cond_11
const/4 v0, 0x1
goto :goto_12
:cond_11
const/4 v0, 0x0
:goto_12
return v0
.end method
.method public presentFragmentAsPreview(Lim/tpelyyftgw/ui/actionbar/BaseFragment;)Z
.registers 3
.param p1, "fragment" # Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.line 433
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v0, :cond_c
invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->presentFragmentAsPreview(Lim/tpelyyftgw/ui/actionbar/BaseFragment;)Z
move-result v0
if-eqz v0, :cond_c
const/4 v0, 0x1
goto :goto_d
:cond_c
const/4 v0, 0x0
:goto_d
return v0
.end method
.method public presentFragmentFromBottom(Lim/tpelyyftgw/ui/actionbar/BaseFragment;ZZ)Z
.registers 10
.param p1, "fragment" # Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.param p2, "removeLast" # Z
.param p3, "forceWithoutAnimation" # Z
.line 449
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v0, :cond_11
const/4 v4, 0x1
const/4 v5, 0x0
move-object v1, p1
move v2, p2
move v3, p3
invoke-virtual/range {v0 .. v5}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->presentFragmentFromBottom(Lim/tpelyyftgw/ui/actionbar/BaseFragment;ZZZZ)Z
move-result v0
if-eqz v0, :cond_11
const/4 v0, 0x1
goto :goto_12
:cond_11
const/4 v0, 0x0
:goto_12
return v0
.end method
.method public removeSelfFromStack()V
.registers 3
.line 329
iget-boolean v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->isFinished:Z
if-nez v0, :cond_10
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-nez v0, :cond_9
goto :goto_10
.line 332
:cond_9
const/4 v1, 0x1
iput-boolean v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->finishing:Z
.line 333
invoke-virtual {v0, p0}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->removeFragmentFromStack(Lim/tpelyyftgw/ui/actionbar/BaseFragment;)V
.line 334
return-void
.line 330
:cond_10
:goto_10
return-void
.end method
.method public restoreSelfArgs(Landroid/os/Bundle;)V
.registers 2
.param p1, "args" # Landroid/os/Bundle;
.line 430
return-void
.end method
.method public saveSelfArgs(Landroid/os/Bundle;)V
.registers 2
.param p1, "args" # Landroid/os/Bundle;
.line 426
return-void
.end method
.method public setArguments(Landroid/os/Bundle;)V
.registers 2
.param p1, "arguments" # Landroid/os/Bundle;
.line 421
iput-object p1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->arguments:Landroid/os/Bundle;
.line 422
return-void
.end method
.method public setCurrentAccount(I)V
.registers 4
.param p1, "account" # I
.line 112
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
if-nez v0, :cond_7
.line 115
iput p1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->currentAccount:I
.line 116
return-void
.line 113
:cond_7
new-instance v0, Ljava/lang/IllegalStateException;
const-string/jumbo v1, "trying to set current account when fragment UI already created"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method protected setInPreviewMode(Z)V
.registers 6
.param p1, "value" # Z
.line 154
iput-boolean p1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->inPreviewMode:Z
.line 155
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
if-eqz v0, :cond_17
.line 156
const/4 v1, 0x0
if-eqz p1, :cond_d
.line 157
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setOccupyStatusBar(Z)V
goto :goto_17
.line 159
:cond_d
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x15
if-lt v2, v3, :cond_14
const/4 v1, 0x1
:cond_14
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->setOccupyStatusBar(Z)V
.line 162
:cond_17
:goto_17
return-void
.end method
.method public setNavigationBarColor(I)V
.registers 6
.param p1, "color" # I
.line 681
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getParentActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
.line 682
.local v0, "activity":Landroid/app/Activity;
if-eqz v0, :cond_2c
.line 683
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v1
.line 684
.local v1, "window":Landroid/view/Window;
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x1a
if-lt v2, v3, :cond_2c
if-eqz v1, :cond_2c
invoke-virtual {v1}, Landroid/view/Window;->getNavigationBarColor()I
move-result v2
if-eq v2, p1, :cond_2c
.line 685
invoke-virtual {v1, p1}, Landroid/view/Window;->setNavigationBarColor(I)V
.line 686
invoke-static {p1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->computePerceivedBrightness(I)F
move-result v2
.line 687
.local v2, "brightness":F
const v3, 0x3f389375 # 0.721f
cmpl-float v3, v2, v3
if-ltz v3, :cond_28
const/4 v3, 0x1
goto :goto_29
:cond_28
const/4 v3, 0x0
:goto_29
invoke-static {v1, v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->setLightNavigationBar(Landroid/view/Window;Z)V
.line 690
.end local v1 # "window":Landroid/view/Window;
.end local v2 # "brightness":F
:cond_2c
return-void
.end method
.method protected setParentActivityTitle(Ljava/lang/CharSequence;)V
.registers 3
.param p1, "title" # Ljava/lang/CharSequence;
.line 460
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getParentActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
.line 461
.local v0, "activity":Landroid/app/Activity;
if-eqz v0, :cond_9
.line 462
invoke-virtual {v0, p1}, Landroid/app/Activity;->setTitle(Ljava/lang/CharSequence;)V
.line 464
:cond_9
return-void
.end method
.method public setParentFragment(Lim/tpelyyftgw/ui/actionbar/BaseFragment;)V
.registers 3
.param p1, "fragment" # Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.line 210
iget-object v0, p1, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->setParentLayout(Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;)V
.line 211
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->createView(Landroid/content/Context;)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
.line 212
return-void
.end method
.method protected setParentLayout(Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;)V
.registers 7
.param p1, "layout" # Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
.line 220
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
const/4 v1, 0x0
if-eq v0, p1, :cond_80
.line 221
iput-object p1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
.line 222
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
const/4 v2, 0x0
if-eqz v0, :cond_33
.line 223
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
.line 224
.local v0, "parent":Landroid/view/ViewGroup;
if-eqz v0, :cond_21
.line 226
:try_start_14
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->onRemoveFromParent()V
.line 227
iget-object v3, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
:try_end_1c
.catch Ljava/lang/Exception; {:try_start_14 .. :try_end_1c} :catch_1d
.line 230
goto :goto_21
.line 228
:catch_1d
move-exception v3
.line 229
.local v3, "e":Ljava/lang/Exception;
invoke-static {v3}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 232
.end local v3 # "e":Ljava/lang/Exception;
:cond_21
:goto_21
iget-object v3, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v3, :cond_33
invoke-virtual {v3}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->getContext()Landroid/content/Context;
move-result-object v3
iget-object v4, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
invoke-virtual {v4}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v4
if-eq v3, v4, :cond_33
.line 233
iput-object v2, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
.line 236
.end local v0 # "parent":Landroid/view/ViewGroup;
:cond_33
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
if-eqz v0, :cond_6c
.line 237
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v0, :cond_49
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->getContext()Landroid/content/Context;
move-result-object v0
iget-object v3, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getContext()Landroid/content/Context;
move-result-object v3
if-eq v0, v3, :cond_49
const/4 v0, 0x1
goto :goto_4a
:cond_49
const/4 v0, 0x0
.line 238
.local v0, "differentParent":Z
:goto_4a
iget-object v3, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getAddToContainer()Z
move-result v3
if-nez v3, :cond_54
if-eqz v0, :cond_68
.line 239
:cond_54
iget-object v3, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/actionbar/ActionBar;->getParent()Landroid/view/ViewParent;
move-result-object v3
check-cast v3, Landroid/view/ViewGroup;
.line 240
.local v3, "parent":Landroid/view/ViewGroup;
if-eqz v3, :cond_68
.line 242
:try_start_5e
iget-object v4, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
invoke-virtual {v3, v4}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
:try_end_63
.catch Ljava/lang/Exception; {:try_start_5e .. :try_end_63} :catch_64
.line 245
goto :goto_68
.line 243
:catch_64
move-exception v4
.line 244
.local v4, "e":Ljava/lang/Exception;
invoke-static {v4}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 248
.end local v3 # "parent":Landroid/view/ViewGroup;
.end local v4 # "e":Ljava/lang/Exception;
:cond_68
:goto_68
if-eqz v0, :cond_6c
.line 249
iput-object v2, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
.line 252
.end local v0 # "differentParent":Z
:cond_6c
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v0, :cond_80
iget-object v2, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
if-nez v2, :cond_80
.line 253
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->createActionBar(Landroid/content/Context;)Lim/tpelyyftgw/ui/actionbar/ActionBar;
move-result-object v0
iput-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->actionBar:Lim/tpelyyftgw/ui/actionbar/ActionBar;
.line 254
iput-object p0, v0, Lim/tpelyyftgw/ui/actionbar/ActionBar;->parentFragment:Lim/tpelyyftgw/ui/actionbar/BaseFragment;
.line 257
:cond_80
iput-boolean v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->isFinished:Z
.line 258
iput-boolean v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->finishing:Z
.line 259
return-void
.end method
.method protected setStatusBarTheme()V
.registers 3
.line 369
invoke-static {}, Lim/tpelyyftgw/ui/actionbar/Theme;->getCurrentTheme()Lim/tpelyyftgw/ui/actionbar/Theme$ThemeInfo;
move-result-object v0
if-eqz v0, :cond_19
invoke-static {}, Lim/tpelyyftgw/ui/actionbar/Theme;->getCurrentTheme()Lim/tpelyyftgw/ui/actionbar/Theme$ThemeInfo;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/Theme$ThemeInfo;->isDark()Z
move-result v0
if-eqz v0, :cond_19
.line 370
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getParentActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
const/4 v1, 0x0
invoke-static {v0, v1}, Lim/tpelyyftgw/messenger/utils/status/StatusBarUtils;->setStatusBarDarkTheme(Landroid/app/Activity;Z)Z
goto :goto_2a
.line 372
:cond_19
invoke-virtual {p0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->getParentActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
const/4 v1, 0x1
invoke-static {v0, v1}, Lim/tpelyyftgw/messenger/utils/status/StatusBarUtils;->setStatusBarDarkTheme(Landroid/app/Activity;Z)Z
.line 373
const-string v0, "bottomBarBackgroundColor"
invoke-static {v0}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v0
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->setNavigationBarColor(I)V
.line 375
:goto_2a
return-void
.end method
.method public setVisibleDialog(Landroid/app/Dialog;)V
.registers 2
.param p1, "dialog" # Landroid/app/Dialog;
.line 592
iput-object p1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
.line 593
return-void
.end method
.method public showDialog(Landroid/app/Dialog;)Landroid/app/Dialog;
.registers 4
.param p1, "dialog" # Landroid/app/Dialog;
.line 546
const/4 v0, 0x0
const/4 v1, 0x0
invoke-virtual {p0, p1, v0, v1}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->showDialog(Landroid/app/Dialog;ZLandroid/content/DialogInterface$OnDismissListener;)Landroid/app/Dialog;
move-result-object v0
return-object v0
.end method
.method public showDialog(Landroid/app/Dialog;Landroid/content/DialogInterface$OnDismissListener;)Landroid/app/Dialog;
.registers 4
.param p1, "dialog" # Landroid/app/Dialog;
.param p2, "onDismissListener" # Landroid/content/DialogInterface$OnDismissListener;
.line 550
const/4 v0, 0x0
invoke-virtual {p0, p1, v0, p2}, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->showDialog(Landroid/app/Dialog;ZLandroid/content/DialogInterface$OnDismissListener;)Landroid/app/Dialog;
move-result-object v0
return-object v0
.end method
.method public showDialog(Landroid/app/Dialog;ZLandroid/content/DialogInterface$OnDismissListener;)Landroid/app/Dialog;
.registers 7
.param p1, "dialog" # Landroid/app/Dialog;
.param p2, "allowInTransition" # Z
.param p3, "onDismissListener" # Landroid/content/DialogInterface$OnDismissListener;
.line 554
const/4 v0, 0x0
if-eqz p1, :cond_49
iget-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v1, :cond_49
iget-boolean v1, v1, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->animationInProgress:Z
if-nez v1, :cond_49
iget-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
iget-boolean v1, v1, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->startedTracking:Z
if-nez v1, :cond_49
if-nez p2, :cond_1c
iget-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->checkTransitionAnimation()Z
move-result v1
if-eqz v1, :cond_1c
goto :goto_49
.line 558
:cond_1c
:try_start_1c
iget-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
if-eqz v1, :cond_27
.line 559
iget-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
invoke-virtual {v1}, Landroid/app/Dialog;->dismiss()V
.line 560
iput-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
:try_end_27
.catch Ljava/lang/Exception; {:try_start_1c .. :try_end_27} :catch_28
.line 564
:cond_27
goto :goto_2c
.line 562
:catch_28
move-exception v1
.line 563
.local v1, "e":Ljava/lang/Exception;
invoke-static {v1}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 566
.end local v1 # "e":Ljava/lang/Exception;
:goto_2c
:try_start_2c
iput-object p1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
.line 567
const/4 v1, 0x1
invoke-virtual {p1, v1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V
.line 568
iget-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
new-instance v2, Lim/tpelyyftgw/ui/actionbar/-$$Lambda$BaseFragment$8ip7RoFSaSUzlWdaBGH_ZcFl-1c;
invoke-direct {v2, p0, p3}, Lim/tpelyyftgw/ui/actionbar/-$$Lambda$BaseFragment$8ip7RoFSaSUzlWdaBGH_ZcFl-1c;-><init>(Lim/tpelyyftgw/ui/actionbar/BaseFragment;Landroid/content/DialogInterface$OnDismissListener;)V
invoke-virtual {v1, v2}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
.line 575
iget-object v1, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
invoke-virtual {v1}, Landroid/app/Dialog;->show()V
.line 576
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->visibleDialog:Landroid/app/Dialog;
:try_end_43
.catch Ljava/lang/Exception; {:try_start_2c .. :try_end_43} :catch_44
return-object v0
.line 577
:catch_44
move-exception v1
.line 578
.restart local v1 # "e":Ljava/lang/Exception;
invoke-static {v1}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
.line 580
.end local v1 # "e":Ljava/lang/Exception;
return-object v0
.line 555
:cond_49
:goto_49
return-object v0
.end method
.method public startActivityForResult(Landroid/content/Intent;I)V
.registers 4
.param p1, "intent" # Landroid/content/Intent;
.param p2, "requestCode" # I
.line 467
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->parentLayout:Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;
if-eqz v0, :cond_7
.line 468
invoke-virtual {v0, p1, p2}, Lim/tpelyyftgw/ui/actionbar/ActionBarLayout;->startActivityForResult(Landroid/content/Intent;I)V
.line 470
:cond_7
return-void
.end method
.method public useButterKnife()V
.registers 2
.line 672
iget-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->fragmentView:Landroid/view/View;
if-eqz v0, :cond_a
.line 673
invoke-static {p0, v0}, Lbutterknife/ButterKnife;->bind(Ljava/lang/Object;Landroid/view/View;)Lbutterknife/Unbinder;
move-result-object v0
iput-object v0, p0, Lim/tpelyyftgw/ui/actionbar/BaseFragment;->unbinder:Lbutterknife/Unbinder;
.line 674
:cond_a
return-void
.end method