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

Commit 968eeeba authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Android (Google) Code Review
Browse files

Merge "Set the all apps nav bar to black. b/29998559" into ub-launcher3-calgary

parents 230b2b7f e28bd7ca
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -99,4 +99,13 @@
        </LinearLayout>

    </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView>
    <View
        android:id="@+id/nav_bar_bg"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_gravity="bottom"
        android:background="@android:color/black"
        android:elevation="16dp"
        android:focusable="false"
        android:visibility="invisible" />
</com.android.launcher3.allapps.AllAppsContainerView>
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.ImageView;
import android.widget.LinearLayout;
@@ -529,6 +530,12 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
                mSearchIcon.setLayoutParams(llp);

                lp.height = height;

                View navBarBg = findViewById(R.id.nav_bar_bg);
                ViewGroup.LayoutParams params = navBarBg.getLayoutParams();
                params.height = insets.bottom;
                navBarBg.setLayoutParams(params);
                navBarBg.setVisibility(View.VISIBLE);
            }
        }
        mSearchContainer.setLayoutParams(lp);