mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
fix: Ignore generatedPreviews flags on Vanilla Ice Cream and above
This is always enabled on correct AOSP implementations, crashes should be handled by OEM
This commit is contained in:
@@ -55,7 +55,7 @@ public class WidgetItem extends ComponentKey {
|
||||
spanX = Math.min(info.spanX, idp.numColumns);
|
||||
spanY = Math.min(info.spanY, idp.numRows);
|
||||
|
||||
if (BuildCompat.isAtLeastV() && Flags.enableGeneratedPreviews()) {
|
||||
if (BuildCompat.isAtLeastV()) {
|
||||
generatedPreviews = new SparseArray<>(3);
|
||||
for (int widgetCategory : new int[] {
|
||||
WIDGET_CATEGORY_HOME_SCREEN,
|
||||
@@ -120,7 +120,7 @@ public class WidgetItem extends ComponentKey {
|
||||
* category.
|
||||
*/
|
||||
public boolean hasGeneratedPreview(int widgetCategory) {
|
||||
if (!Flags.enableGeneratedPreviews() || generatedPreviews == null) {
|
||||
if (!Utilities.ATLEAST_V || generatedPreviews == null) {
|
||||
return false;
|
||||
}
|
||||
return generatedPreviews.contains(widgetCategory)
|
||||
|
||||
Reference in New Issue
Block a user