Create RestrictedDashboardFragment.
RestrictedDashboardFragment has all the same logic coming from RestrcitedSettingsFragment but extends from DashboardFragment. As a result, we could use preferenceController in child class of RestrictedDashboardFragment. This cl also make DeviceListPreferenceFragment as child of RestrictedDashboardFragment, which enfluences the bluetooth page. Bug: 38041586 Test: Build Change-Id: I01395d506176c5cc584948478f7ca16c1c7c7045
This commit is contained in:
@@ -24,7 +24,7 @@ import android.support.v7.preference.PreferenceCategory;
|
||||
import android.support.v7.preference.PreferenceGroup;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.settings.RestrictedSettingsFragment;
|
||||
import com.android.settings.dashboard.RestrictedDashboardFragment;
|
||||
import com.android.settingslib.bluetooth.BluetoothCallback;
|
||||
import com.android.settingslib.bluetooth.BluetoothDeviceFilter;
|
||||
import com.android.settingslib.bluetooth.CachedBluetoothDevice;
|
||||
@@ -42,7 +42,7 @@ import java.util.WeakHashMap;
|
||||
* @see DevicePickerFragment
|
||||
*/
|
||||
public abstract class DeviceListPreferenceFragment extends
|
||||
RestrictedSettingsFragment implements BluetoothCallback {
|
||||
RestrictedDashboardFragment implements BluetoothCallback {
|
||||
|
||||
private static final String TAG = "DeviceListPreferenceFragment";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user