Merge pointer/tts categories into one without heading
Change-Id: I75dd6472a6eb4929773222844872d43027122f3c Fix: 35960300 Test: robotests
This commit is contained in:
@@ -18,14 +18,11 @@ package com.android.settings.language;
|
||||
|
||||
import android.content.Context;
|
||||
import android.speech.tts.TtsEngines;
|
||||
import android.support.v7.preference.Preference;
|
||||
import android.support.v7.preference.PreferenceScreen;
|
||||
|
||||
import com.android.settings.core.PreferenceController;
|
||||
|
||||
public class TtsPreferenceController extends PreferenceController {
|
||||
|
||||
private static final String KEY_VOICE_CATEGORY = "voice_category";
|
||||
private static final String KEY_TTS_SETTINGS = "tts_settings";
|
||||
|
||||
private final TtsEngines mTtsEngines;
|
||||
@@ -40,14 +37,6 @@ public class TtsPreferenceController extends PreferenceController {
|
||||
return !mTtsEngines.getEngines().isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void displayPreference(PreferenceScreen screen) {
|
||||
super.displayPreference(screen);
|
||||
if (!isAvailable()) {
|
||||
removePreference(screen, KEY_VOICE_CATEGORY);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPreferenceKey() {
|
||||
return KEY_TTS_SETTINGS;
|
||||
|
Reference in New Issue
Block a user