Merge "New onViewCreated in AbstractPreferenceController" into udc-qpr-dev

This commit is contained in:
Chaohui Wang
2023-06-15 03:00:51 +00:00
committed by Android (Google) Code Review

View File

@@ -1,3 +1,19 @@
/*
* Copyright (C) 2023 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.settingslib.core;
import android.app.admin.DevicePolicyManager;
@@ -6,8 +22,11 @@ import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.EmptySuper;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import androidx.core.os.BuildCompat;
import androidx.lifecycle.LifecycleOwner;
import androidx.preference.Preference;
import androidx.preference.PreferenceGroup;
import androidx.preference.PreferenceScreen;
@@ -51,6 +70,13 @@ public abstract class AbstractPreferenceController {
}
}
/**
* Called on view created.
*/
@EmptySuper
public void onViewCreated(@NonNull LifecycleOwner viewLifecycleOwner) {
}
/**
* Updates the current status of preference (summary, switch state, etc)
*/