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

Commit 6e79b084 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Fixing landscape transition into Recents."

parents 85896000 23746d51
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -115,8 +115,8 @@ public class RecentsConfiguration {
        // Recompute some values based on the given state, since we can not rely on the resource
        // system to get certain values.
        boolean isLandscape = windowRect.width() > windowRect.height();
        hasTransposedNavBar = isLandscape && isLargeScreen && !isXLargeScreen;
        hasTransposedSearchBar = isLandscape && isLargeScreen && !isXLargeScreen;
        hasTransposedNavBar = isLandscape && !isXLargeScreen;
        hasTransposedSearchBar = isLandscape && !isXLargeScreen;
    }

    /**
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ class FilteredTaskList {

    /** Returns the index of this task in the list of filtered tasks */
    int indexOf(Task t) {
        if (mTaskIndices.containsKey(t.key)) {
        if (t != null && mTaskIndices.containsKey(t.key)) {
            return mTaskIndices.get(t.key);
        }
        return -1;