2021-07-24 02:37:17 +00:00
package c.b.a.a ;
import android.annotation.SuppressLint ;
import android.app.Dialog ;
import android.content.ActivityNotFoundException ;
import android.content.ClipData ;
import android.content.ContentResolver ;
import android.content.Context ;
import android.content.Intent ;
import android.content.res.ColorStateList ;
import android.graphics.drawable.Drawable ;
import android.net.Uri ;
import android.os.Bundle ;
import android.view.LayoutInflater ;
import android.view.View ;
import android.view.ViewGroup ;
import android.view.Window ;
import android.view.animation.Animation ;
import android.view.animation.AnimationUtils ;
import android.widget.ImageView ;
import android.widget.Toast ;
import androidx.appcompat.app.AppCompatDialog ;
import androidx.appcompat.app.AppCompatDialogFragment ;
import androidx.appcompat.content.res.AppCompatResources ;
2021-09-14 06:27:26 +00:00
import androidx.core.graphics.drawable.DrawableCompat ;
2021-07-24 02:37:17 +00:00
import androidx.core.view.AccessibilityDelegateCompat ;
import androidx.core.view.ViewCompat ;
import androidx.core.view.accessibility.AccessibilityNodeInfoCompat ;
import androidx.fragment.app.Fragment ;
import androidx.fragment.app.FragmentManager ;
import androidx.fragment.app.FragmentTransaction ;
import androidx.viewpager.widget.ViewPager ;
import c.b.a.d.d ;
import com.discord.utilities.color.ColorCompat ;
import com.google.android.material.floatingactionbutton.FloatingActionButton ;
import com.google.android.material.tabs.TabLayout ;
import com.lytefast.flexinput.R ;
import com.lytefast.flexinput.fragment.FlexInputFragment ;
import com.lytefast.flexinput.model.Attachment ;
import com.lytefast.flexinput.utils.SelectionAggregator ;
import com.lytefast.flexinput.utils.SelectionCoordinator ;
import com.lytefast.flexinput.viewmodel.FlexInputViewModel ;
2021-11-02 06:38:17 +00:00
import d0.t.c0 ;
import d0.z.d.m ;
import d0.z.d.o ;
2021-07-24 02:37:17 +00:00
import java.util.ArrayList ;
import java.util.Arrays ;
import java.util.Iterator ;
import java.util.Objects ;
2021-09-14 06:27:26 +00:00
import kotlin.UninitializedPropertyAccessException ;
2021-07-24 02:37:17 +00:00
import kotlin.Unit ;
2021-09-14 06:27:26 +00:00
import kotlin.jvm.functions.Function0 ;
2021-07-24 02:37:17 +00:00
import kotlin.jvm.functions.Function1 ;
import kotlin.ranges.IntRange ;
/* compiled from: AddContentDialogFragment.kt */
public class a extends AppCompatDialogFragment {
2021-12-02 18:53:44 +00:00
public static final /* synthetic */ int j = 0 ;
public ViewPager k ;
public TabLayout l ;
public FloatingActionButton m ;
public ImageView n ;
public SelectionAggregator < Attachment < Object > > o ;
public Function1 < ? super View , Unit > p ;
public ViewPager . OnPageChangeListener q ;
public final c r = new c ( this ) ;
2021-07-24 02:37:17 +00:00
/* compiled from: java-style lambda group */
/* renamed from: c.b.a.a.a$a reason: collision with other inner class name */
2021-11-05 06:48:17 +00:00
public static final class View$OnClickListenerC0051a implements View . OnClickListener {
2021-12-02 18:53:44 +00:00
public final /* synthetic */ int j ;
public final /* synthetic */ Object k ;
2021-07-24 02:37:17 +00:00
2021-11-05 06:48:17 +00:00
public View$OnClickListenerC0051a ( int i , Object obj ) {
2021-12-02 18:53:44 +00:00
this . j = i ;
this . k = obj ;
2021-07-24 02:37:17 +00:00
}
@Override // android.view.View.OnClickListener
public final void onClick ( View view ) {
2021-12-02 18:53:44 +00:00
int i = this . j ;
2021-07-24 02:37:17 +00:00
if ( i = = 0 ) {
2021-12-02 18:53:44 +00:00
a aVar = ( a ) this . k ;
int i2 = a . j ;
2021-07-24 02:37:17 +00:00
if ( aVar . isCancelable ( ) ) {
2021-08-12 06:36:45 +00:00
aVar . h ( true ) ;
2021-07-24 02:37:17 +00:00
}
} else if ( i = = 1 ) {
2021-12-02 18:53:44 +00:00
a aVar2 = ( a ) this . k ;
2021-07-24 02:37:17 +00:00
Objects . requireNonNull ( aVar2 ) ;
Intent intent = new Intent ( " android.intent.action.OPEN_DOCUMENT " ) ;
intent . setType ( " */* " ) ;
intent . addCategory ( " android.intent.category.OPENABLE " ) ;
intent . putExtra ( " android.intent.extra.ALLOW_MULTIPLE " , true ) ;
try {
aVar2 . startActivityForResult ( intent , 5968 ) ;
} catch ( ActivityNotFoundException unused ) {
2021-11-02 06:38:17 +00:00
Toast . makeText ( aVar2 . getContext ( ) , aVar2 . getString ( R . h . error_generic_title ) , 0 ) . show ( ) ;
2021-07-24 02:37:17 +00:00
}
} else if ( i = = 2 ) {
2021-12-02 18:53:44 +00:00
FlexInputFragment flexInputFragment = ( FlexInputFragment ) ( ( Fragment ) this . k ) ;
2021-12-04 07:30:04 +00:00
FlexInputViewModel flexInputViewModel = flexInputFragment . f2546s ;
2021-07-24 02:37:17 +00:00
if ( flexInputViewModel ! = null ) {
2021-12-02 18:53:44 +00:00
flexInputViewModel . onSendButtonClicked ( flexInputFragment . o ) ;
2021-07-24 02:37:17 +00:00
}
} else {
throw null ;
}
}
}
/* compiled from: AddContentDialogFragment.kt */
public static final class b implements Animation . AnimationListener {
2021-12-02 18:53:44 +00:00
public final /* synthetic */ a j ;
public final /* synthetic */ boolean k ;
2021-07-24 02:37:17 +00:00
2021-08-12 06:36:45 +00:00
public b ( a aVar , boolean z2 ) {
2021-12-02 18:53:44 +00:00
this . j = aVar ;
this . k = z2 ;
2021-07-24 02:37:17 +00:00
}
@Override // android.view.animation.Animation.AnimationListener
public void onAnimationEnd ( Animation animation ) {
2021-08-12 06:36:45 +00:00
View view ;
Function1 < ? super View , Unit > function1 ;
2021-07-24 02:37:17 +00:00
m . checkNotNullParameter ( animation , " animation " ) ;
2021-12-02 18:53:44 +00:00
this . j . dismissAllowingStateLoss ( ) ;
if ( this . k & & ( view = this . j . getView ( ) ) ! = null & & ( function1 = this . j . p ) ! = null ) {
2021-08-12 06:36:45 +00:00
m . checkNotNullExpressionValue ( view , " it " ) ;
function1 . invoke ( view ) ;
}
2021-07-24 02:37:17 +00:00
}
@Override // android.view.animation.Animation.AnimationListener
public void onAnimationRepeat ( Animation animation ) {
m . checkNotNullParameter ( animation , " animation " ) ;
}
@Override // android.view.animation.Animation.AnimationListener
public void onAnimationStart ( Animation animation ) {
m . checkNotNullParameter ( animation , " animation " ) ;
}
}
/* compiled from: AddContentDialogFragment.kt */
public static final class c implements SelectionCoordinator . ItemSelectionListener < Attachment < ? > > {
public final /* synthetic */ a a ;
public c ( a aVar ) {
this . a = aVar ;
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener
public void onItemSelected ( Attachment < ? > attachment ) {
m . checkNotNullParameter ( attachment , " item " ) ;
a . g ( this . a ) ;
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener
public void onItemUnselected ( Attachment < ? > attachment ) {
m . checkNotNullParameter ( attachment , " item " ) ;
a . g ( this . a ) ;
}
@Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener
public void unregister ( ) {
}
}
/* compiled from: AddContentDialogFragment.kt */
public static final class d extends AppCompatDialog {
public d ( a aVar , Context context , int i ) {
super ( context , i ) ;
}
@Override // android.app.Dialog
public void show ( ) {
super . show ( ) ;
Window window = getWindow ( ) ;
if ( window ! = null ) {
window . setLayout ( - 1 , - 1 ) ;
}
}
}
/* compiled from: AddContentDialogFragment.kt */
2021-09-14 06:27:26 +00:00
public static final class e extends o implements Function0 < Unit > {
public final /* synthetic */ Fragment $flexInputFragment ;
public final /* synthetic */ a this $0 ;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public e ( a aVar , Fragment fragment ) {
super ( 0 ) ;
this . this$0 = aVar ;
this . $flexInputFragment = fragment ;
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
2021-11-02 06:38:17 +00:00
public Unit mo1invoke ( ) {
2021-09-14 06:27:26 +00:00
TabLayout tabLayout ;
TabLayout . Tab tabAt ;
FragmentManager childFragmentManager = this . this$0 . getChildFragmentManager ( ) ;
m . checkNotNullExpressionValue ( childFragmentManager , " childFragmentManager " ) ;
d . a [ ] k = ( ( FlexInputFragment ) this . $flexInputFragment ) . k ( ) ;
c . b . a . d . d dVar = new c . b . a . d . d ( childFragmentManager , ( d . a [ ] ) Arrays . copyOf ( k , k . length ) ) ;
a aVar = this . this$0 ;
Objects . requireNonNull ( aVar ) ;
m . checkNotNullParameter ( dVar , " pagerAdapter " ) ;
Context context = aVar . getContext ( ) ;
2021-12-02 18:53:44 +00:00
if ( ! ( context = = null | | ( tabLayout = aVar . l ) = = null ) ) {
2021-09-14 06:27:26 +00:00
m . checkNotNullExpressionValue ( context , " context " ) ;
m . checkNotNullParameter ( context , " context " ) ;
m . checkNotNullParameter ( tabLayout , " tabLayout " ) ;
ColorStateList colorStateList = AppCompatResources . getColorStateList ( context , R . c . tab_color_selector ) ;
int tabCount = tabLayout . getTabCount ( ) ;
for ( int i = 0 ; i < tabCount ; i + + ) {
TabLayout . Tab tabAt2 = tabLayout . getTabAt ( i ) ;
if ( tabAt2 ! = null ) {
m . checkNotNullExpressionValue ( colorStateList , " iconColors " ) ;
Drawable icon = tabAt2 . getIcon ( ) ;
if ( icon ! = null ) {
Drawable wrap = DrawableCompat . wrap ( icon ) ;
DrawableCompat . setTintList ( wrap , colorStateList ) ;
tabAt2 . setIcon ( wrap ) ;
}
}
}
d . a [ ] aVarArr = dVar . a ;
ArrayList arrayList = new ArrayList ( aVarArr . length ) ;
for ( d . a aVar2 : aVarArr ) {
TabLayout . Tab icon2 = tabLayout . newTab ( ) . setIcon ( aVar2 . getIcon ( ) ) ;
m . checkNotNullExpressionValue ( icon2 , " tabLayout.newTab() \ n .setIcon(it.icon) " ) ;
m . checkNotNullExpressionValue ( colorStateList , " iconColors " ) ;
Drawable icon3 = icon2 . getIcon ( ) ;
if ( icon3 ! = null ) {
Drawable wrap2 = DrawableCompat . wrap ( icon3 ) ;
DrawableCompat . setTintList ( wrap2 , colorStateList ) ;
icon2 . setIcon ( wrap2 ) ;
}
arrayList . add ( icon2 . setContentDescription ( aVar2 . getContentDesc ( ) ) ) ;
}
Iterator it = arrayList . iterator ( ) ;
while ( it . hasNext ( ) ) {
tabLayout . addTab ( ( TabLayout . Tab ) it . next ( ) ) ;
}
2021-12-02 18:53:44 +00:00
ViewPager viewPager = aVar . k ;
2021-09-14 06:27:26 +00:00
if ( viewPager ! = null ) {
viewPager . setAdapter ( dVar ) ;
}
2021-12-02 18:53:44 +00:00
TabLayout tabLayout2 = aVar . l ;
2021-09-14 06:27:26 +00:00
if ( tabLayout2 ! = null ) {
tabLayout2 . addOnTabSelectedListener ( ( TabLayout . OnTabSelectedListener ) new b ( aVar ) ) ;
}
2021-12-02 18:53:44 +00:00
ViewPager viewPager2 = aVar . k ;
2021-09-14 06:27:26 +00:00
if ( viewPager2 ! = null ) {
viewPager2 . addOnPageChangeListener ( new c ( aVar ) ) ;
}
2021-12-02 18:53:44 +00:00
TabLayout tabLayout3 = aVar . l ;
2021-09-14 06:27:26 +00:00
if ( ! ( tabLayout3 = = null | | ( tabAt = tabLayout3 . getTabAt ( 0 ) ) = = null ) ) {
tabAt . select ( ) ;
}
}
return Unit . a ;
}
}
/* compiled from: AddContentDialogFragment.kt */
public static final class f extends AccessibilityDelegateCompat {
2021-07-24 02:37:17 +00:00
public final /* synthetic */ a a ;
2021-09-14 06:27:26 +00:00
public f ( a aVar ) {
2021-07-24 02:37:17 +00:00
this . a = aVar ;
}
@Override // androidx.core.view.AccessibilityDelegateCompat
public void onInitializeAccessibilityNodeInfo ( View view , AccessibilityNodeInfoCompat accessibilityNodeInfoCompat ) {
m . checkNotNullParameter ( view , " host " ) ;
m . checkNotNullParameter ( accessibilityNodeInfoCompat , " info " ) ;
2021-12-02 18:53:44 +00:00
ImageView imageView = this . a . n ;
2021-07-24 02:37:17 +00:00
Objects . requireNonNull ( imageView , " null cannot be cast to non-null type android.view.View " ) ;
accessibilityNodeInfoCompat . setTraversalAfter ( imageView ) ;
super . onInitializeAccessibilityNodeInfo ( view , accessibilityNodeInfoCompat ) ;
}
}
/* compiled from: AddContentDialogFragment.kt */
2021-09-14 06:27:26 +00:00
public static final class g implements Runnable {
2021-12-02 18:53:44 +00:00
public final /* synthetic */ a j ;
2021-07-24 02:37:17 +00:00
2021-09-14 06:27:26 +00:00
public g ( a aVar ) {
2021-12-02 18:53:44 +00:00
this . j = aVar ;
2021-07-24 02:37:17 +00:00
}
@Override // java.lang.Runnable
public final void run ( ) {
2021-12-02 18:53:44 +00:00
a . g ( this . j ) ;
2021-07-24 02:37:17 +00:00
}
}
public static final void g ( a aVar ) {
2021-12-02 18:53:44 +00:00
FloatingActionButton floatingActionButton = aVar . m ;
2021-07-24 02:37:17 +00:00
if ( floatingActionButton ! = null ) {
floatingActionButton . post ( new d ( aVar ) ) ;
}
}
2021-08-12 06:36:45 +00:00
public final void h ( boolean z2 ) {
2021-07-24 02:37:17 +00:00
Context context = getContext ( ) ;
if ( context ! = null ) {
m . checkNotNullExpressionValue ( context , " context ?: return dismissAllowingStateLoss() " ) ;
Animation loadAnimation = AnimationUtils . loadAnimation ( context , com . google . android . material . R . anim . design_bottom_sheet_slide_out ) ;
m . checkNotNullExpressionValue ( loadAnimation , " animation " ) ;
loadAnimation . setDuration ( ( long ) getResources ( ) . getInteger ( com . google . android . material . R . integer . bottom_sheet_slide_duration ) ) ;
loadAnimation . setInterpolator ( context , 17432580 ) ;
2021-12-02 18:53:44 +00:00
FloatingActionButton floatingActionButton = this . m ;
2021-07-24 02:37:17 +00:00
if ( floatingActionButton ! = null ) {
floatingActionButton . hide ( ) ;
}
2021-12-02 18:53:44 +00:00
TabLayout tabLayout = this . l ;
2021-07-24 02:37:17 +00:00
if ( tabLayout ! = null ) {
tabLayout . startAnimation ( loadAnimation ) ;
}
2021-12-02 18:53:44 +00:00
ViewPager viewPager = this . k ;
2021-07-24 02:37:17 +00:00
if ( viewPager ! = null ) {
viewPager . startAnimation ( loadAnimation ) ;
}
2021-12-02 18:53:44 +00:00
ImageView imageView = this . n ;
2021-07-24 02:37:17 +00:00
if ( imageView ! = null ) {
imageView . startAnimation ( loadAnimation ) ;
}
2021-08-12 06:36:45 +00:00
loadAnimation . setAnimationListener ( new b ( this , z2 ) ) ;
2021-07-24 02:37:17 +00:00
return ;
}
dismissAllowingStateLoss ( ) ;
}
@Override // androidx.fragment.app.Fragment
2021-12-02 18:53:44 +00:00
public void onActivityResult ( int i , int i2 , Intent intent ) {
2021-07-24 02:37:17 +00:00
ContentResolver contentResolver ;
2021-12-02 18:53:44 +00:00
super . onActivityResult ( i , i2 , intent ) ;
if ( 5968 = = i & & i2 ! = 0 ) {
if ( - 1 ! = i2 | | intent = = null ) {
2021-07-24 02:37:17 +00:00
Toast . makeText ( getContext ( ) , " Error loading files " , 0 ) . show ( ) ;
return ;
}
Context context = getContext ( ) ;
if ( ! ( context = = null | | ( contentResolver = context . getContentResolver ( ) ) = = null ) ) {
ClipData clipData = intent . getClipData ( ) ;
Fragment parentFragment = getParentFragment ( ) ;
Objects . requireNonNull ( parentFragment , " null cannot be cast to non-null type com.lytefast.flexinput.FlexInputCoordinator<kotlin.Any> " ) ;
c . b . a . b bVar = ( c . b . a . b ) parentFragment ;
if ( clipData = = null ) {
Uri data = intent . getData ( ) ;
if ( data ! = null ) {
2021-11-02 06:38:17 +00:00
bVar . f ( Attachment . Companion . b ( data , contentResolver ) ) ;
2021-07-24 02:37:17 +00:00
return ;
}
return ;
}
2021-11-02 06:38:17 +00:00
IntRange until = d0 . d0 . f . until ( 0 , clipData . getItemCount ( ) ) ;
ArrayList < Uri > arrayList = new ArrayList ( d0 . t . o . collectionSizeOrDefault ( until , 10 ) ) ;
2021-07-24 02:37:17 +00:00
Iterator < Integer > it = until . iterator ( ) ;
while ( it . hasNext ( ) ) {
ClipData . Item itemAt = clipData . getItemAt ( ( ( c0 ) it ) . nextInt ( ) ) ;
m . checkNotNullExpressionValue ( itemAt , " clipData.getItemAt(it) " ) ;
arrayList . add ( itemAt . getUri ( ) ) ;
}
for ( Uri uri : arrayList ) {
Attachment . Companion companion = Attachment . Companion ;
m . checkNotNullExpressionValue ( uri , " it " ) ;
2021-11-02 06:38:17 +00:00
bVar . f ( companion . b ( uri , contentResolver ) ) ;
2021-07-24 02:37:17 +00:00
}
}
}
}
@Override // androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.DialogFragment
@SuppressLint ( { " PrivateResource " } )
public Dialog onCreateDialog ( Bundle bundle ) {
2021-11-02 06:38:17 +00:00
d dVar = new d ( this , getContext ( ) , R . i . FlexInput_DialogWhenLarge ) ;
2021-07-24 02:37:17 +00:00
dVar . supportRequestWindowFeature ( 1 ) ;
Window window = dVar . getWindow ( ) ;
if ( window ! = null ) {
window . setWindowAnimations ( com . google . android . material . R . style . Animation_AppCompat_Dialog ) ;
window . setBackgroundDrawableResource ( 17170445 ) ;
}
return dVar ;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView ( LayoutInflater layoutInflater , ViewGroup viewGroup , Bundle bundle ) {
m . checkNotNullParameter ( layoutInflater , " inflater " ) ;
2021-11-02 06:38:17 +00:00
View inflate = layoutInflater . inflate ( R . g . dialog_add_content_pager_with_fab , viewGroup , false ) ;
2021-07-24 02:37:17 +00:00
if ( inflate ! = null ) {
2021-11-05 06:48:17 +00:00
inflate . setOnClickListener ( new View$OnClickListenerC0051a ( 0 , this ) ) ;
2021-12-02 18:53:44 +00:00
this . k = ( ViewPager ) inflate . findViewById ( R . f . content_pager ) ;
this . l = ( TabLayout ) inflate . findViewById ( R . f . content_tabs ) ;
this . m = ( FloatingActionButton ) inflate . findViewById ( R . f . action_btn ) ;
2021-11-02 06:38:17 +00:00
ImageView imageView = ( ImageView ) inflate . findViewById ( R . f . launch_btn ) ;
2021-12-02 18:53:44 +00:00
this . n = imageView ;
2021-07-24 02:37:17 +00:00
if ( imageView ! = null ) {
2021-11-05 06:48:17 +00:00
imageView . setOnClickListener ( new View$OnClickListenerC0051a ( 1 , this ) ) ;
2021-07-24 02:37:17 +00:00
}
2021-12-02 18:53:44 +00:00
FloatingActionButton floatingActionButton = this . m ;
2021-07-24 02:37:17 +00:00
Objects . requireNonNull ( floatingActionButton , " null cannot be cast to non-null type com.google.android.material.floatingactionbutton.FloatingActionButton " ) ;
floatingActionButton . setBackgroundTintList ( ColorStateList . valueOf ( ColorCompat . getThemedColor ( inflate . getContext ( ) , R . b . color_brand_500 ) ) ) ;
}
Fragment parentFragment = getParentFragment ( ) ;
if ( parentFragment instanceof FlexInputFragment ) {
FlexInputFragment flexInputFragment = ( FlexInputFragment ) parentFragment ;
2021-09-14 06:27:26 +00:00
e eVar = new e ( this , parentFragment ) ;
Objects . requireNonNull ( flexInputFragment ) ;
m . checkNotNullParameter ( eVar , " onContentPagesInitialized " ) ;
try {
flexInputFragment . k ( ) ;
2021-11-02 06:38:17 +00:00
eVar . mo1invoke ( ) ;
2021-09-14 06:27:26 +00:00
} catch ( UninitializedPropertyAccessException unused ) {
2021-12-04 07:30:04 +00:00
flexInputFragment . f2547x . add ( eVar ) ;
2021-07-24 02:37:17 +00:00
}
2021-12-02 18:53:44 +00:00
FloatingActionButton floatingActionButton2 = this . m ;
2021-07-24 02:37:17 +00:00
if ( floatingActionButton2 ! = null ) {
2021-11-05 06:48:17 +00:00
floatingActionButton2 . setOnClickListener ( new View$OnClickListenerC0051a ( 2 , parentFragment ) ) ;
2021-07-24 02:37:17 +00:00
}
2021-12-02 18:53:44 +00:00
this . o = flexInputFragment . b ( ) . addItemSelectionListener ( this . r ) ;
FloatingActionButton floatingActionButton3 = this . m ;
2021-07-24 02:37:17 +00:00
Objects . requireNonNull ( floatingActionButton3 , " null cannot be cast to non-null type android.view.View " ) ;
2021-09-14 06:27:26 +00:00
ViewCompat . setAccessibilityDelegate ( floatingActionButton3 , new f ( this ) ) ;
2021-07-24 02:37:17 +00:00
}
return inflate ;
}
@Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onDestroyView ( ) {
2021-12-02 18:53:44 +00:00
SelectionAggregator < Attachment < Object > > selectionAggregator = this . o ;
2021-07-24 02:37:17 +00:00
if ( selectionAggregator ! = null ) {
2021-12-02 18:53:44 +00:00
selectionAggregator . removeItemSelectionListener ( this . r ) ;
2021-07-24 02:37:17 +00:00
}
super . onDestroyView ( ) ;
}
@Override // androidx.fragment.app.Fragment
public void onResume ( ) {
super . onResume ( ) ;
2021-12-02 18:53:44 +00:00
FloatingActionButton floatingActionButton = this . m ;
2021-07-24 02:37:17 +00:00
if ( floatingActionButton ! = null ) {
2021-09-14 06:27:26 +00:00
floatingActionButton . post ( new g ( this ) ) ;
2021-07-24 02:37:17 +00:00
}
}
@Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onStart ( ) {
super . onStart ( ) ;
Context context = getContext ( ) ;
if ( context ! = null ) {
m . checkNotNullExpressionValue ( context , " it " ) ;
Animation loadAnimation = AnimationUtils . loadAnimation ( context , com . google . android . material . R . anim . design_bottom_sheet_slide_in ) ;
m . checkNotNullExpressionValue ( loadAnimation , " animation " ) ;
loadAnimation . setDuration ( ( long ) getResources ( ) . getInteger ( com . google . android . material . R . integer . bottom_sheet_slide_duration ) ) ;
loadAnimation . setInterpolator ( context , 17432580 ) ;
2021-12-02 18:53:44 +00:00
TabLayout tabLayout = this . l ;
2021-07-24 02:37:17 +00:00
if ( tabLayout ! = null ) {
tabLayout . startAnimation ( loadAnimation ) ;
}
2021-12-02 18:53:44 +00:00
ViewPager viewPager = this . k ;
2021-07-24 02:37:17 +00:00
if ( viewPager ! = null ) {
viewPager . startAnimation ( loadAnimation ) ;
}
2021-12-02 18:53:44 +00:00
ImageView imageView = this . n ;
2021-07-24 02:37:17 +00:00
if ( imageView ! = null ) {
imageView . startAnimation ( loadAnimation ) ;
}
}
}
@Override // androidx.fragment.app.DialogFragment
@SuppressLint ( { " PrivateResource " } )
public int show ( FragmentTransaction fragmentTransaction , String str ) {
m . checkNotNullParameter ( fragmentTransaction , " transaction " ) ;
fragmentTransaction . setCustomAnimations ( com . google . android . material . R . anim . abc_grow_fade_in_from_bottom , com . google . android . material . R . anim . abc_shrink_fade_out_from_bottom ) ;
return super . show ( fragmentTransaction , str ) ;
}
}