35 lines
1.3 KiB
Java
35 lines
1.3 KiB
Java
|
package com.discord.widgets.channels;
|
||
|
|
||
|
import android.app.Dialog;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import com.discord.R;
|
||
|
/* compiled from: WidgetThreadOnboarding.kt */
|
||
|
public final class WidgetThreadOnboarding$configureMedia$1 implements Runnable {
|
||
|
public final /* synthetic */ WidgetThreadOnboarding this$0;
|
||
|
|
||
|
public WidgetThreadOnboarding$configureMedia$1(WidgetThreadOnboarding widgetThreadOnboarding) {
|
||
|
this.this$0 = widgetThreadOnboarding;
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
View view = this.this$0.getView();
|
||
|
ViewGroup.LayoutParams layoutParams = null;
|
||
|
Integer valueOf = view != null ? Integer.valueOf(view.getMeasuredHeight()) : null;
|
||
|
Dialog dialog = this.this$0.getDialog();
|
||
|
View findViewById = dialog != null ? dialog.findViewById(R.id.design_bottom_sheet) : null;
|
||
|
if (findViewById != null) {
|
||
|
layoutParams = findViewById.getLayoutParams();
|
||
|
}
|
||
|
if (valueOf != null && valueOf.intValue() > 0) {
|
||
|
if (layoutParams != null) {
|
||
|
layoutParams.height = valueOf.intValue() + 1;
|
||
|
}
|
||
|
if (findViewById != null) {
|
||
|
findViewById.setLayoutParams(layoutParams);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|