[Settings] Refactor: Add LocalePickerBaseListPreferenceController

Bug: 377664066
Flag: EXEMPT refactor
Change-Id: I54d212ea520b67263f5b797175936c046a534519
This commit is contained in:
Zoey Chen
2024-11-06 13:14:53 +00:00
parent 2c4aec3a23
commit 31dfbdabf1
4 changed files with 248 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
/**
* Copyright (C) 2024 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.
*/
package com.android.settings.localepicker;
import androidx.annotation.NonNull;
import com.android.internal.app.LocaleStore;
import java.util.List;
/** Interface for when locale list changes in SearchView . */
public interface LocaleListSearchCallback {
/** Callback method for searching changes. */
void onSearchListChanged(@NonNull List<LocaleStore.LocaleInfo> localeInfoList);
}