1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 13:14:39 +00:00

Refactoring

This commit is contained in:
M66B 2022-03-10 07:39:47 +01:00
parent 4e147d440e
commit 6b34286473

View file

@ -701,12 +701,17 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
List<Long> expanded = values.get("expanded");
Log.i("Capture expanded=" + (expanded == null ? null : expanded.size()));
if (expanded != null && expanded.size() == 1) {
int pos = adapter.getPositionForKey(expanded.get(0));
long id = expanded.get(0);
int pos = adapter.getPositionForKey(id);
Log.i("Capture pos=" + pos);
child = llm.findViewByPosition(pos);
Log.i("Capture child=" + child);
if (child != null)
rect.set(0, 0, child.getWidth(), child.getHeight());
if (child != null) {
int w = child.getWidth();
int h = child.getHeight();
Log.i("Capture " + w + "x" + h);
rect.set(0, 0, w, h);
}
}
} catch (Throwable ex) {
Log.e(ex);