From 290aa7345be9a93d07f2d030913eb84de9c33986 Mon Sep 17 00:00:00 2001 From: Raff Tsai Date: Mon, 25 Nov 2019 16:58:14 +0800 Subject: [PATCH] Remove shadow below the actionbar Bug: 141601408 Test: manual Change-Id: Iaa196ff3b67dbc274116b5215ef48e126099edb9 --- .../dashboard/profileselector/ProfileSelectFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/android/settings/dashboard/profileselector/ProfileSelectFragment.java b/src/com/android/settings/dashboard/profileselector/ProfileSelectFragment.java index b8d4be16990..aee79822252 100644 --- a/src/com/android/settings/dashboard/profileselector/ProfileSelectFragment.java +++ b/src/com/android/settings/dashboard/profileselector/ProfileSelectFragment.java @@ -27,9 +27,11 @@ import android.widget.LinearLayout; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentStatePagerAdapter; +import androidx.recyclerview.widget.RecyclerView; import androidx.viewpager.widget.ViewPager; import com.android.settings.R; +import com.android.settings.Utils; import com.android.settings.dashboard.DashboardFragment; import com.google.android.material.tabs.TabLayout; @@ -90,6 +92,10 @@ public abstract class ProfileSelectFragment extends DashboardFragment { listContainer.setLayoutParams(new LinearLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); + + final RecyclerView recyclerView = getListView(); + recyclerView.setOverScrollMode(View.OVER_SCROLL_NEVER); + Utils.setActionBarShadowAnimation(getActivity(), getSettingsLifecycle(), recyclerView); return mContentView; }