mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Add classic configuration to wizard button
This commit is contained in:
@@ -133,13 +133,17 @@ public class FragmentBase extends Fragment {
|
||||
scroll.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Rect rect = new Rect();
|
||||
child.getDrawingRect(rect);
|
||||
scroll.offsetDescendantRectToMyCoords(child, rect);
|
||||
int y = rect.top - scroll.getPaddingTop() + dy;
|
||||
if (y < 0)
|
||||
y = 0;
|
||||
scroll.scrollTo(0, y);
|
||||
try {
|
||||
Rect rect = new Rect();
|
||||
child.getDrawingRect(rect);
|
||||
scroll.offsetDescendantRectToMyCoords(child, rect);
|
||||
int y = rect.top - scroll.getPaddingTop() + dy;
|
||||
if (y < 0)
|
||||
y = 0;
|
||||
scroll.scrollTo(0, y);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user