Loading res/layout/manage_apps_filter_spinner.xml 0 → 100644 +32 −0 Original line number Original line Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2021 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@android:color/transparent"> <com.android.settingslib.widget.settingsspinner.SettingsSpinner android:id="@+id/filter_spinner" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_marginStart="24dp" android:layout_marginTop="16dp" android:layout_marginBottom="8dp" android:theme="@style/Widget.PopupWindow.Settings"/> </FrameLayout> src/com/android/settings/applications/manageapplications/ManageApplications.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -434,7 +434,7 @@ public class ManageApplications extends InstrumentedFragment final Activity activity = getActivity(); final Activity activity = getActivity(); final FrameLayout pinnedHeader = mRootView.findViewById(R.id.pinned_header); final FrameLayout pinnedHeader = mRootView.findViewById(R.id.pinned_header); mSpinnerHeader = activity.getLayoutInflater() mSpinnerHeader = activity.getLayoutInflater() .inflate(R.layout.apps_filter_spinner, pinnedHeader, false); .inflate(R.layout.manage_apps_filter_spinner, pinnedHeader, false); mFilterSpinner = mSpinnerHeader.findViewById(R.id.filter_spinner); mFilterSpinner = mSpinnerHeader.findViewById(R.id.filter_spinner); mFilterAdapter = new FilterSpinnerAdapter(this); mFilterAdapter = new FilterSpinnerAdapter(this); mFilterSpinner.setAdapter(mFilterAdapter); mFilterSpinner.setAdapter(mFilterAdapter); Loading Loading
res/layout/manage_apps_filter_spinner.xml 0 → 100644 +32 −0 Original line number Original line Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2021 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@android:color/transparent"> <com.android.settingslib.widget.settingsspinner.SettingsSpinner android:id="@+id/filter_spinner" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_marginStart="24dp" android:layout_marginTop="16dp" android:layout_marginBottom="8dp" android:theme="@style/Widget.PopupWindow.Settings"/> </FrameLayout>
src/com/android/settings/applications/manageapplications/ManageApplications.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -434,7 +434,7 @@ public class ManageApplications extends InstrumentedFragment final Activity activity = getActivity(); final Activity activity = getActivity(); final FrameLayout pinnedHeader = mRootView.findViewById(R.id.pinned_header); final FrameLayout pinnedHeader = mRootView.findViewById(R.id.pinned_header); mSpinnerHeader = activity.getLayoutInflater() mSpinnerHeader = activity.getLayoutInflater() .inflate(R.layout.apps_filter_spinner, pinnedHeader, false); .inflate(R.layout.manage_apps_filter_spinner, pinnedHeader, false); mFilterSpinner = mSpinnerHeader.findViewById(R.id.filter_spinner); mFilterSpinner = mSpinnerHeader.findViewById(R.id.filter_spinner); mFilterAdapter = new FilterSpinnerAdapter(this); mFilterAdapter = new FilterSpinnerAdapter(this); mFilterSpinner.setAdapter(mFilterAdapter); mFilterSpinner.setAdapter(mFilterAdapter); Loading