mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Workarounds for a couple crashes. (Bug 5612584, Bug 5613438)
Change-Id: I9669d830a10cc98291737f3f1d561c846c408289
This commit is contained in:
@@ -46,6 +46,16 @@ public class PagedViewGridLayout extends GridLayout implements Page {
|
||||
return mCellCountY;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears all the key listeners for the individual widgets.
|
||||
*/
|
||||
public void resetChildrenOnKeyListeners() {
|
||||
int childCount = getChildCount();
|
||||
for (int j = 0; j < childCount; ++j) {
|
||||
getChildAt(j).setOnKeyListener(null);
|
||||
}
|
||||
}
|
||||
|
||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||
// PagedView currently has issues with different-sized pages since it calculates the
|
||||
// offset of each page to scroll to before it updates the actual size of each page
|
||||
|
||||
Reference in New Issue
Block a user