2021-06-27 20:44:35 +00:00
package com.discord.app ;
import android.content.ActivityNotFoundException ;
import android.content.Context ;
import android.content.Intent ;
import android.content.pm.PackageManager ;
import android.net.Uri ;
import android.os.Bundle ;
import android.view.Menu ;
import android.view.MenuItem ;
import android.view.View ;
import androidx.annotation.CallSuper ;
import androidx.annotation.ColorInt ;
import androidx.annotation.DrawableRes ;
import androidx.annotation.LayoutRes ;
import androidx.annotation.MenuRes ;
import androidx.annotation.StringRes ;
import androidx.appcompat.widget.Toolbar ;
import androidx.fragment.app.Fragment ;
import c.a.d.e ;
import com.discord.media_picker.MediaPicker ;
import com.discord.media_picker.RequestType ;
import com.discord.utilities.attachments.AttachmentUtilsKt ;
import com.discord.utilities.display.DisplayUtils ;
import com.discord.utilities.view.text.TextWatcher ;
import com.discord.views.ToolbarTitleLayout ;
import com.lytefast.flexinput.managers.FileManager ;
import d0.g ;
import d0.z.d.m ;
import d0.z.d.o ;
import java.io.File ;
import java.io.IOException ;
import java.util.Collection ;
import java.util.HashMap ;
import java.util.Iterator ;
import java.util.Objects ;
import kotlin.Lazy ;
import kotlin.Unit ;
import kotlin.jvm.functions.Function0 ;
import kotlin.jvm.functions.Function1 ;
import rx.functions.Action1 ;
import rx.functions.Action2 ;
import rx.functions.Func0 ;
import rx.subjects.PublishSubject ;
import rx.subjects.Subject ;
/* compiled from: AppFragment.kt */
public abstract class AppFragment extends Fragment implements AppComponent , AppPermissionsRequests , MediaPicker . Provider {
private final Lazy fileManager$delegate = g . lazy ( new a ( this ) ) ;
private boolean isRecreated ;
private boolean onViewBoundOrOnResumeInvoked ;
private final Subject < Void , Void > unsubscribeSignal ;
/* compiled from: AppFragment.kt */
public static final class a extends o implements Function0 < c . b . a . f . b > {
public final /* synthetic */ AppFragment this $0 ;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a ( AppFragment appFragment ) {
super ( 0 ) ;
this . this$0 = appFragment ;
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public c . b . a . f . b mo1invoke ( ) {
return new c . b . a . f . b ( this . this$0 . requireContext ( ) , null , null , 6 ) ;
}
}
/* compiled from: AppFragment.kt */
public static final class b implements MediaPicker . a {
public final /* synthetic */ AppFragment a ;
public b ( AppFragment appFragment ) {
this . a = appFragment ;
}
@Override // com.discord.media_picker.MediaPicker.a
public void a ( Exception exc ) {
m . checkNotNullParameter ( exc , " e " ) ;
2021-07-03 23:36:06 +00:00
c . a . d . o . h ( this . a . getContext ( ) , c . a . l . b . j ( this . a , 2131894240 , new Object [ ] { exc . getMessage ( ) } , null , 4 ) , 0 , null , 12 ) ;
2021-06-27 20:44:35 +00:00
}
@Override // com.discord.media_picker.MediaPicker.a
public void b ( Uri uri , RequestType requestType ) {
m . checkNotNullParameter ( uri , " uri " ) ;
m . checkNotNullParameter ( requestType , " request " ) ;
String mimeType$default = AttachmentUtilsKt . getMimeType$default ( this . a . requireContext ( ) . getContentResolver ( ) , uri , null , 4 , null ) ;
if ( requestType . ordinal ( ) ! = 3 ) {
this . a . onImageChosen ( uri , mimeType$default ) ;
} else {
this . a . onImageCropped ( uri , mimeType$default ) ;
}
}
}
/* compiled from: AppFragment.kt */
public static final class c extends o implements Function0 < Unit > {
public final /* synthetic */ AppFragment this $0 ;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public c ( AppFragment appFragment ) {
super ( 0 ) ;
this . this$0 = appFragment ;
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public Unit mo1invoke ( ) {
MediaPicker mediaPicker = MediaPicker . a ;
AppFragment appFragment = this . this$0 ;
2021-06-27 20:53:42 +00:00
CharSequence j = c . a . l . b . j ( appFragment , 2131887373 , new Object [ 0 ] , null , 4 ) ;
2021-06-27 20:44:35 +00:00
e eVar = new e ( this ) ;
m . checkNotNullParameter ( appFragment , " provider " ) ;
m . checkNotNullParameter ( j , " chooserTitle " ) ;
m . checkNotNullParameter ( " image/* " , " mimeType " ) ;
m . checkNotNullParameter ( eVar , " onError " ) ;
try {
Uri a = mediaPicker . a ( appFragment ) ;
PackageManager packageManager = appFragment . requireContext ( ) . getPackageManager ( ) ;
m . checkNotNullExpressionValue ( packageManager , " provider.requireContext().packageManager " ) ;
Intent b = c . a . m . b . b ( packageManager , j , a , " image/* " ) ;
mediaPicker . c ( appFragment . requireContext ( ) , new Intent ( " android.media.action.IMAGE_CAPTURE " ) , a ) ;
try {
appFragment . startActivityForResult ( b , RequestType . CHOOSER . getCode$media_picker_release ( ) ) ;
return Unit . a ;
} catch ( ActivityNotFoundException unused ) {
throw new IOException ( " No application available for media picker. " ) ;
}
} catch ( IOException e ) {
eVar . invoke ( e ) ;
}
}
}
/* compiled from: AppFragment.kt */
public static final class d extends o implements Function0 < Boolean > {
public final /* synthetic */ Func0 $onBackAction ;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public d ( Func0 func0 ) {
super ( 0 ) ;
this . $onBackAction = func0 ;
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public Boolean mo1invoke ( ) {
Object call = this . $onBackAction . call ( ) ;
m . checkNotNullExpressionValue ( call , " onBackAction.call() " ) ;
return Boolean . valueOf ( ( ( Boolean ) call ) . booleanValue ( ) ) ;
}
}
public AppFragment ( ) {
2021-07-03 23:36:06 +00:00
PublishSubject k0 = PublishSubject . k0 ( ) ;
m . checkNotNullExpressionValue ( k0 , " PublishSubject.create() " ) ;
this . unsubscribeSignal = k0 ;
2021-06-27 20:44:35 +00:00
}
public AppFragment ( @LayoutRes int i ) {
super ( i ) ;
2021-07-03 23:36:06 +00:00
PublishSubject k0 = PublishSubject . k0 ( ) ;
m . checkNotNullExpressionValue ( k0 , " PublishSubject.create() " ) ;
this . unsubscribeSignal = k0 ;
2021-06-27 20:44:35 +00:00
}
private final Unit bindToolbar ( AppActivity appActivity , View view ) {
Toolbar toolbar ;
if ( view = = null | | ( toolbar = ( Toolbar ) view . findViewById ( 2131361871 ) ) = = null ) {
return null ;
}
if ( ! m . areEqual ( appActivity . t , toolbar ) ) {
appActivity . n ( toolbar ) ;
}
return Unit . a ;
}
public static /* synthetic */ void hideKeyboard$default ( AppFragment appFragment , View view , int i , Object obj ) {
if ( obj = = null ) {
if ( ( i & 1 ) ! = 0 ) {
view = null ;
}
appFragment . hideKeyboard ( view ) ;
return ;
}
throw new UnsupportedOperationException ( " Super calls with default arguments not supported in this target, function: hideKeyboard " ) ;
}
public static /* synthetic */ Toolbar setActionBarDisplayHomeAsUpEnabled$default ( AppFragment appFragment , boolean z2 , int i , Object obj ) {
if ( obj = = null ) {
if ( ( i & 1 ) ! = 0 ) {
z2 = true ;
}
return appFragment . setActionBarDisplayHomeAsUpEnabled ( z2 ) ;
}
throw new UnsupportedOperationException ( " Super calls with default arguments not supported in this target, function: setActionBarDisplayHomeAsUpEnabled " ) ;
}
public static /* synthetic */ Toolbar setActionBarDisplayHomeAsUpEnabled$default ( AppFragment appFragment , boolean z2 , Integer num , Integer num2 , Integer num3 , int i , Object obj ) {
if ( obj = = null ) {
if ( ( i & 1 ) ! = 0 ) {
z2 = true ;
}
if ( ( i & 8 ) ! = 0 ) {
num3 = null ;
}
return appFragment . setActionBarDisplayHomeAsUpEnabled ( z2 , num , num2 , num3 ) ;
}
throw new UnsupportedOperationException ( " Super calls with default arguments not supported in this target, function: setActionBarDisplayHomeAsUpEnabled " ) ;
}
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.app.AppFragment */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ Toolbar setActionBarOptionsMenu$default ( AppFragment appFragment , int i , Action2 action2 , Action1 action1 , int i2 , Object obj ) {
if ( obj = = null ) {
if ( ( i2 & 4 ) ! = 0 ) {
action1 = null ;
}
return appFragment . setActionBarOptionsMenu ( i , action2 , action1 ) ;
}
throw new UnsupportedOperationException ( " Super calls with default arguments not supported in this target, function: setActionBarOptionsMenu " ) ;
}
public static /* synthetic */ void setOnBackPressed$default ( AppFragment appFragment , Func0 func0 , int i , int i2 , Object obj ) {
if ( obj = = null ) {
if ( ( i2 & 2 ) ! = 0 ) {
i = Integer . MAX_VALUE ;
}
appFragment . setOnBackPressed ( func0 , i ) ;
return ;
}
throw new UnsupportedOperationException ( " Super calls with default arguments not supported in this target, function: setOnBackPressed " ) ;
}
@CallSuper
public Unit bindToolbar ( ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
return bindToolbar ( appActivity , getView ( ) ) ;
}
return null ;
}
public final ToolbarTitleLayout getActionBarTitleLayout ( ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
return appActivity . e ( ) ;
}
return null ;
}
public final AppActivity getAppActivity ( ) {
return ( AppActivity ) getActivity ( ) ;
}
public final FileManager getFileManager ( ) {
return ( FileManager ) this . fileManager$delegate . getValue ( ) ;
}
@Override // com.discord.media_picker.MediaPicker.Provider
public File getImageFile ( ) {
return getFileManager ( ) . b ( ) ;
}
public final Intent getMostRecentIntent ( ) {
Intent c2 ;
AppActivity appActivity = getAppActivity ( ) ;
return ( appActivity = = null | | ( c2 = appActivity . c ( ) ) = = null ) ? new Intent ( ) : c2 ;
}
@Override // com.discord.app.AppComponent
public Subject < Void , Void > getUnsubscribeSignal ( ) {
return this . unsubscribeSignal ;
}
@Override // com.discord.app.AppPermissionsRequests
public boolean hasMedia ( ) {
return requireAppActivity ( ) . w . hasMedia ( ) ;
}
public final void hideKeyboard ( ) {
hideKeyboard$default ( this , null , 1 , null ) ;
}
public void hideKeyboard ( View view ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
appActivity . hideKeyboard ( view ) ;
}
}
public final boolean isRecreated ( ) {
return this . isRecreated ;
}
@Override // androidx.fragment.app.Fragment
public void onActivityResult ( int i , int i2 , Intent intent ) {
RequestType requestType ;
super . onActivityResult ( i , i2 , intent ) ;
MediaPicker mediaPicker = MediaPicker . a ;
Context requireContext = requireContext ( ) ;
b bVar = new b ( this ) ;
m . checkNotNullParameter ( requireContext , " context " ) ;
m . checkNotNullParameter ( bVar , " result " ) ;
Objects . requireNonNull ( RequestType . Companion ) ;
if ( i = = 800 ) {
requestType = RequestType . CROP ;
} else if ( i ! = 801 ) {
switch ( i ) {
case 777 :
requestType = RequestType . CAMERA ;
break ;
case 778 :
requestType = RequestType . GALLERY ;
break ;
case 779 :
requestType = RequestType . DOCUMENTS ;
break ;
default :
requestType = null ;
break ;
}
} else {
requestType = RequestType . CHOOSER ;
}
if ( requestType = = null ) {
return ;
}
if ( i2 = = - 1 ) {
Uri d2 = mediaPicker . d ( requireContext , requestType , intent ) ;
requireContext . sendBroadcast ( new Intent ( " android.intent.action.MEDIA_SCANNER_SCAN_FILE " , d2 ) ) ;
bVar . b ( d2 , requestType ) ;
} else if ( i2 ! = 0 ) {
try {
throw new IOException ( " Bad activity result code: " + i2 + " , for request code: " + i ) ;
} catch ( IOException e ) {
bVar . a ( e ) ;
}
}
}
@Override // androidx.fragment.app.Fragment
public void onDestroyView ( ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
String name = getClass ( ) . getName ( ) ;
m . checkNotNullExpressionValue ( name , " javaClass.name " ) ;
m . checkNotNullParameter ( name , " key " ) ;
Collection < HashMap < String , Function0 < Boolean > > > values = appActivity . k . values ( ) ;
m . checkNotNullExpressionValue ( values , " backPressHandlers \ n .values " ) ;
Iterator < T > it = values . iterator ( ) ;
while ( it . hasNext ( ) ) {
( ( HashMap ) it . next ( ) ) . remove ( name ) ;
}
}
TextWatcher . Companion . reset ( this ) ;
super . onDestroyView ( ) ;
}
@Override // androidx.fragment.app.Fragment
public void onDetach ( ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
m . checkNotNullParameter ( this , " fragmentOwner " ) ;
appActivity . o . remove ( Integer . valueOf ( getId ( ) ) ) ;
}
super . onDetach ( ) ;
}
public void onImageChosen ( Uri uri , String str ) {
m . checkNotNullParameter ( uri , " uri " ) ;
m . checkNotNullParameter ( str , " mimeType " ) ;
}
public void onImageCropped ( Uri uri , String str ) {
m . checkNotNullParameter ( uri , " uri " ) ;
m . checkNotNullParameter ( str , " mimeType " ) ;
}
@Override // androidx.fragment.app.Fragment
public void onPause ( ) {
getUnsubscribeSignal ( ) . onNext ( null ) ;
super . onPause ( ) ;
}
@Override // androidx.fragment.app.Fragment
public void onResume ( ) {
super . onResume ( ) ;
if ( this . onViewBoundOrOnResumeInvoked ) {
this . onViewBoundOrOnResumeInvoked = false ;
} else {
onViewBoundOrOnResume ( ) ;
}
}
@CallSuper
public void onViewBound ( View view ) {
m . checkNotNullParameter ( view , " view " ) ;
}
@CallSuper
public void onViewBoundOrOnResume ( ) {
}
@Override // androidx.fragment.app.Fragment
public void onViewCreated ( View view , Bundle bundle ) {
m . checkNotNullParameter ( view , " view " ) ;
super . onViewCreated ( view , bundle ) ;
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
bindToolbar ( appActivity , view ) ;
}
this . isRecreated = bundle ! = null ;
DisplayUtils . drawUnderSystemBars ( view ) ;
onViewBound ( view ) ;
onViewBoundOrOnResume ( ) ;
this . onViewBoundOrOnResumeInvoked = true ;
}
public final void openMediaChooser ( ) {
requestMedia ( new c ( this ) ) ;
}
@Override // com.discord.app.AppPermissionsRequests
public void requestCameraQRScanner ( Function0 < Unit > function0 ) {
m . checkNotNullParameter ( function0 , " onSuccess " ) ;
requireAppActivity ( ) . w . requestCameraQRScanner ( function0 ) ;
}
@Override // com.discord.app.AppPermissionsRequests
public void requestCameraQRScanner ( Function0 < Unit > function0 , Function0 < Unit > function02 ) {
m . checkNotNullParameter ( function0 , " onSuccess " ) ;
requireAppActivity ( ) . w . requestCameraQRScanner ( function0 , function02 ) ;
}
@Override // com.discord.app.AppPermissionsRequests
public void requestContacts ( Function0 < Unit > function0 , Function0 < Unit > function02 ) {
m . checkNotNullParameter ( function0 , " onSuccess " ) ;
m . checkNotNullParameter ( function02 , " onFailure " ) ;
requireAppActivity ( ) . w . requestContacts ( function0 , function02 ) ;
}
@Override // com.discord.app.AppPermissionsRequests
public void requestMedia ( Function0 < Unit > function0 ) {
m . checkNotNullParameter ( function0 , " onSuccess " ) ;
requireAppActivity ( ) . w . requestMedia ( function0 ) ;
}
@Override // com.discord.app.AppPermissionsRequests
public void requestMediaDownload ( Function0 < Unit > function0 ) {
m . checkNotNullParameter ( function0 , " onSuccess " ) ;
requireAppActivity ( ) . w . requestMediaDownload ( function0 ) ;
}
@Override // com.discord.app.AppPermissionsRequests
public void requestMicrophone ( Function0 < Unit > function0 , Function0 < Unit > function02 ) {
m . checkNotNullParameter ( function02 , " onSuccess " ) ;
requireAppActivity ( ) . w . requestMicrophone ( function0 , function02 ) ;
}
@Override // com.discord.app.AppPermissionsRequests
public void requestVideoCallPermissions ( Function0 < Unit > function0 ) {
m . checkNotNullParameter ( function0 , " onSuccess " ) ;
requireAppActivity ( ) . w . requestVideoCallPermissions ( function0 ) ;
}
public final AppActivity requireAppActivity ( ) {
AppActivity appActivity = getAppActivity ( ) ;
m . checkNotNull ( appActivity ) ;
return appActivity ;
}
public final Toolbar setActionBarDisplayHomeAsUpEnabled ( ) {
return setActionBarDisplayHomeAsUpEnabled$default ( this , false , 1 , null ) ;
}
public final Toolbar setActionBarDisplayHomeAsUpEnabled ( boolean z2 ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity = = null ) {
return null ;
}
boolean z3 = AppActivity . l ;
return appActivity . k ( z2 , null , null , null ) ;
}
public final Toolbar setActionBarDisplayHomeAsUpEnabled ( boolean z2 , @DrawableRes Integer num , @StringRes Integer num2 , @ColorInt Integer num3 ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
return appActivity . k ( z2 , num , num2 , num3 ) ;
}
return null ;
}
public final Toolbar setActionBarOptionsMenu ( @MenuRes int i , Action2 < MenuItem , Context > action2 ) {
return setActionBarOptionsMenu$default ( this , i , action2 , null , 4 , null ) ;
}
public final Toolbar setActionBarOptionsMenu ( @MenuRes int i , Action2 < MenuItem , Context > action2 , Action1 < Menu > action1 ) {
Toolbar toolbar ;
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity = = null | | ( toolbar = appActivity . t ) = = null ) {
return null ;
}
Menu menu = toolbar . getMenu ( ) ;
if ( menu ! = null ) {
menu . clear ( ) ;
}
toolbar . inflateMenu ( i ) ;
toolbar . setOnMenuItemClickListener ( new c . a . d . b ( toolbar , i , action2 , action1 ) ) ;
Menu menu2 = toolbar . getMenu ( ) ;
if ( ! ( menu2 = = null | | action1 = = null ) ) {
action1 . call ( menu2 ) ;
}
return toolbar ;
}
public final Unit setActionBarSubtitle ( @StringRes int i ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
String string = getString ( i ) ;
ToolbarTitleLayout e = appActivity . e ( ) ;
if ( e ! = null ) {
e . setSubtitle ( string ) ;
return Unit . a ;
}
}
return null ;
}
public final Unit setActionBarSubtitle ( CharSequence charSequence ) {
ToolbarTitleLayout e ;
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity = = null | | ( e = appActivity . e ( ) ) = = null ) {
return null ;
}
e . setSubtitle ( charSequence ) ;
return Unit . a ;
}
public final Unit setActionBarTitle ( @StringRes int i ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
return appActivity . l ( getString ( i ) , null ) ;
}
return null ;
}
public final Unit setActionBarTitle ( CharSequence charSequence ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
return appActivity . l ( charSequence , null ) ;
}
return null ;
}
public final Unit setActionBarTitle ( CharSequence charSequence , @DrawableRes Integer num ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
return appActivity . l ( charSequence , num ) ;
}
return null ;
}
public final Unit setActionBarTitleAccessibilityViewFocused ( ) {
ToolbarTitleLayout e ;
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity = = null | | ( e = appActivity . e ( ) ) = = null ) {
return null ;
}
e . sendAccessibilityEvent ( 8 ) ;
return Unit . a ;
}
public final Unit setActionBarTitleClick ( View . OnClickListener onClickListener ) {
m . checkNotNullParameter ( onClickListener , " onClickListener " ) ;
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity = = null ) {
return null ;
}
m . checkNotNullParameter ( onClickListener , " onClickListener " ) ;
ToolbarTitleLayout e = appActivity . e ( ) ;
if ( e = = null ) {
return null ;
}
e . setOnClickListener ( onClickListener ) ;
return Unit . a ;
}
public final Unit setActionBarTitleColor ( @ColorInt int i ) {
ToolbarTitleLayout e ;
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity = = null | | ( e = appActivity . e ( ) ) = = null ) {
return null ;
}
e . setTitleColor ( i ) ;
return Unit . a ;
}
public final Unit setActionBarTitleLayoutExpandedTappableArea ( ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity = = null ) {
return null ;
}
ToolbarTitleLayout e = appActivity . e ( ) ;
if ( e ! = null ) {
e . setLayoutParams ( new Toolbar . LayoutParams ( - 1 , - 1 ) ) ;
}
return Unit . a ;
}
public final Unit setActionBarTitleLayoutMinimumTappableArea ( ) {
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity = = null ) {
return null ;
}
ToolbarTitleLayout e = appActivity . e ( ) ;
if ( e ! = null ) {
e . setLayoutParams ( new Toolbar . LayoutParams ( - 2 , - 2 ) ) ;
}
return Unit . a ;
}
public final void setOnBackPressed ( Func0 < Boolean > func0 ) {
setOnBackPressed$default ( this , func0 , 0 , 2 , null ) ;
}
public final void setOnBackPressed ( Func0 < Boolean > func0 , int i ) {
m . checkNotNullParameter ( func0 , " onBackAction " ) ;
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
d dVar = new d ( func0 ) ;
String name = getClass ( ) . getName ( ) ;
m . checkNotNullExpressionValue ( name , " javaClass.name " ) ;
m . checkNotNullParameter ( dVar , " handler " ) ;
m . checkNotNullParameter ( name , " key " ) ;
HashMap < String , Function0 < Boolean > > hashMap = appActivity . k . get ( Integer . valueOf ( i ) ) ;
if ( hashMap = = null ) {
hashMap = new HashMap < > ( ) ;
}
hashMap . put ( name , dVar ) ;
appActivity . k . put ( Integer . valueOf ( i ) , hashMap ) ;
}
}
public final void setOnNewIntentListener ( Function1 < ? super Intent , Unit > function1 ) {
m . checkNotNullParameter ( function1 , " action " ) ;
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
m . checkNotNullParameter ( this , " fragmentOwner " ) ;
m . checkNotNullParameter ( function1 , " action " ) ;
appActivity . o . put ( Integer . valueOf ( getId ( ) ) , function1 ) ;
}
}
public void showKeyboard ( View view ) {
m . checkNotNullParameter ( view , " view " ) ;
AppActivity appActivity = getAppActivity ( ) ;
if ( appActivity ! = null ) {
appActivity . showKeyboard ( view ) ;
}
}
}