36 lines
1.0 KiB
Java
36 lines
1.0 KiB
Java
|
package com.scb.phone.view.custom.common;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.util.AttributeSet;
|
||
|
import android.view.View;
|
||
|
import o.guQ;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class WrapContentViewPager extends NonSwipeableViewPager {
|
||
|
public int e;
|
||
|
|
||
|
public WrapContentViewPager(Context context) {
|
||
|
super(context);
|
||
|
this.e = 0;
|
||
|
}
|
||
|
|
||
|
public WrapContentViewPager(Context context, AttributeSet attributeSet) {
|
||
|
super(context, attributeSet);
|
||
|
this.e = 0;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.viewpager.widget.ViewPager, android.view.View
|
||
|
public void onMeasure(int i, int i2) {
|
||
|
try {
|
||
|
View childAt = getChildAt(this.e);
|
||
|
if (childAt != null) {
|
||
|
childAt.measure(i, View.MeasureSpec.makeMeasureSpec(0, 0));
|
||
|
i2 = View.MeasureSpec.makeMeasureSpec(childAt.getMeasuredHeight(), 1073741824);
|
||
|
}
|
||
|
} catch (Exception e) {
|
||
|
guQ.c(e, "WrapContentViewPager onMeasureException", new Object[0]);
|
||
|
}
|
||
|
super.onMeasure(i, i2);
|
||
|
}
|
||
|
}
|