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

Commit e770f10d authored by Brandon Dayauon's avatar Brandon Dayauon
Browse files

Fix NPE when locking private space in taskbar allapps.

We can just remove the check since isSearchSupported has been launched.

bug: 345648701
Test manually video -
before: https://drive.google.com/file/d/1EwwRXrASusmqVixGWuKGnOQQyiDLE6Yy/view?usp=sharing
after: https://drive.google.com/file/d/1OCvtxzbhRJrBMMM2JH_cOurQ-_BaALSA/view?usp=sharing
Flag: com.android.launcher3.enable_private_space

Change-Id: I0ae19d342556aac4ee0b6e26b4cef8752c0beb38
parent 20a07702
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -305,9 +305,7 @@ public class AllAppsRecyclerView extends FastScrollRecyclerView {

    @Override
    public int getScrollBarTop() {
        return ActivityContext.lookupContext(getContext()).getAppsView().isSearchSupported()
                ? getResources().getDimensionPixelOffset(R.dimen.all_apps_header_top_padding)
                : 0;
        return getResources().getDimensionPixelOffset(R.dimen.all_apps_header_top_padding);
    }

    @Override