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

Unverified Commit b107a102 authored by LuK1337's avatar LuK1337
Browse files

LineageParts: Get rid of custom list layout

Fixes edge to edge for profiles settings.

Change-Id: I5533db59e09acb085664c5ddbb236d1d5b45a790
parent 64065562
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     SPDX-FileCopyrightText: 2014 The CyanogenMod Project
     SPDX-License-Identifier: Apache-2.0
-->
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/list"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" />
+2 −2
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
    public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        mRecyclerView = view.findViewById(android.R.id.list);
        mRecyclerView = getListView();
        mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
        mRecyclerView.setAdapter(mAdapter);

@@ -855,7 +855,7 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_setup_actions, container, false);
        View view = super.onCreateView(inflater, container, savedInstanceState);

        if (mNewProfileMode) {
            showButtonBar(true);