mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Fixing crash during rotation
> Different views with same IDs were saving state > Fixing scroll getting reset on rotation Change-Id: Iae42419b83ee5ffa1bb43959f0931c8dfb761f32
This commit is contained in:
@@ -278,11 +278,14 @@ public class AlphabeticalAppsList {
|
||||
/**
|
||||
* Sets the sorted list of filtered components.
|
||||
*/
|
||||
public void setOrderedFilter(ArrayList<ComponentKey> f) {
|
||||
public boolean setOrderedFilter(ArrayList<ComponentKey> f) {
|
||||
if (mSearchResults != f) {
|
||||
boolean same = mSearchResults != null && mSearchResults.equals(f);
|
||||
mSearchResults = f;
|
||||
updateAdapterItems();
|
||||
return !same;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user