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

Commit ce38c62a authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Remove conservative MainKeyboardView.draw" into jb-mr1-dev

parents e6af6c2f 1b6829b0
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -835,20 +835,6 @@ public class MainKeyboardView extends KeyboardView implements PointerTracker.Key
        return false;
    }

    @Override
    public void draw(Canvas c) {
        Utils.GCUtils.getInstance().reset();
        boolean tryGC = true;
        for (int i = 0; i < Utils.GCUtils.GC_TRY_LOOP_MAX && tryGC; ++i) {
            try {
                super.draw(c);
                tryGC = false;
            } catch (OutOfMemoryError e) {
                tryGC = Utils.GCUtils.getInstance().tryGCOrWait(TAG, e);
            }
        }
    }

    /**
     * Receives hover events from the input framework.
     *