Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2035a465 authored by Adam Cohen's avatar Adam Cohen
Browse files

Fixing bug where widgets would go dead after moving to another screen

-> A memory optimization was causing AdapterViewAnimator to give up its
   reference to its adapter, rendering the widget dead.
-> Did testing, and it doesn't appear that this optimization was
   making a difference, so it appears safe to remove.

Change-Id: I274c5f73862cbda2dc5411d5c94a9ba1ac1e3635
parent 8a445fc3
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -1015,10 +1015,4 @@ public abstract class AdapterViewAnimator extends AdapterView<Adapter>
     */
     */
    public void fyiWillBeAdvancedByHostKThx() {
    public void fyiWillBeAdvancedByHostKThx() {
    }
    }

    @Override
    protected void onDetachedFromWindow() {
        setAdapter(null);
        super.onDetachedFromWindow();
    }
}
}