Adding a couple memory optimizations to Launcher
-> Always dispose of widget page views when leaving the activity. These pages hold onto many bitmaps. -> Clear database cache when leaving the activity. Bug: 17967108 Change-Id: I10ebaaed14e7cd86f09a9afcabd73043705f21b8
This commit is contained in:
1 parent
5fd733dbae
commit
3f9c971e76
4 files changed
+23
-10
No files matched your search
@@ -91,6 +91,10 @@ public abstract class PagedViewWithDraggableItems extends PagedView
|
||||
return super.onTouchEvent(ev);
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
mLastTouchedItem = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onTouch(View v, MotionEvent event) {
|
||||
mLastTouchedItem = v;
|
||||
|
||||
Reference in new issue
Block a user