what-the-bank/sources/o/AbstractRunnableC14102fmp.java

60 lines
2.0 KiB
Java

package o;
import android.graphics.Rect;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
import com.scb.phone.view.fragment.landingpage.LandingFragment;
import java.lang.ref.WeakReference;
/* renamed from: o.fmp, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public abstract class AbstractRunnableC14102fmp implements Runnable {
private WeakReference<RecyclerView> c;
private WeakReference<LandingFragment> e;
public AbstractRunnableC14102fmp(LandingFragment landingFragment, RecyclerView recyclerView) {
C14957gcv.e(landingFragment, "");
C14957gcv.e(recyclerView, "");
this.e = new WeakReference<>(landingFragment);
this.c = new WeakReference<>(recyclerView);
}
/* renamed from: o.fmp$IeS */
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
public boolean e() {
LandingFragment landingFragment = this.e.get();
return (landingFragment == null || !landingFragment.isAdded() || this.c.get() == null) ? false : true;
}
public final int a() {
RecyclerView recyclerView = this.c.get();
LandingFragment landingFragment = this.e.get();
if (recyclerView == null || landingFragment == null) {
return 0;
}
Rect rect = new Rect();
recyclerView.getGlobalVisibleRect(rect);
int i = rect.bottom;
Rect rect2 = new Rect();
View view = landingFragment.getView();
if (view != null) {
view.getGlobalVisibleRect(rect2);
}
int i2 = rect2.bottom;
return Math.max((i2 - i) - landingFragment.getResources().getDimensionPixelSize(com.scb.phone.R.dimen.f19602131165726), landingFragment.getResources().getDimensionPixelSize(com.scb.phone.R.dimen.f28042131166570));
}
static {
new IeS((byte) 0);
}
}