Undo inverting setting, remove method from BaseSettingsFragment
This commit is contained in:
parent
96d6aff021
commit
8c37068918
3 changed files with 8 additions and 8 deletions
|
@ -702,7 +702,7 @@ public class VoiceRouter {
|
|||
boolean isPlay = true;
|
||||
ExitInfo exitInfo = next.getExitInfo();
|
||||
if (tParam != null) {
|
||||
if (exitInfo != null && !Algorithms.isEmpty(exitInfo.getRef()) && !settings.SPEAK_EXIT_NUMBER_NAMES.get()) {
|
||||
if (exitInfo != null && !Algorithms.isEmpty(exitInfo.getRef()) && settings.SPEAK_EXIT_NUMBER_NAMES.get()) {
|
||||
String stringRef = getSpeakableExitRef(exitInfo.getRef());
|
||||
p.takeExit(tParam, dist, stringRef, getIntRef(exitInfo.getRef()), getSpeakableExitName(next, exitInfo, true));
|
||||
} else {
|
||||
|
@ -777,7 +777,7 @@ public class VoiceRouter {
|
|||
ExitInfo exitInfo = next.getExitInfo();
|
||||
boolean isplay = true;
|
||||
if (tParam != null) {
|
||||
if (exitInfo != null && !Algorithms.isEmpty(exitInfo.getRef()) && !settings.SPEAK_EXIT_NUMBER_NAMES.get()) {
|
||||
if (exitInfo != null && !Algorithms.isEmpty(exitInfo.getRef()) && settings.SPEAK_EXIT_NUMBER_NAMES.get()) {
|
||||
String stringRef = getSpeakableExitRef(exitInfo.getRef());
|
||||
p.takeExit(tParam, stringRef, getIntRef(exitInfo.getRef()), getSpeakableExitName(next, exitInfo, !suppressDest));
|
||||
} else {
|
||||
|
|
|
@ -924,12 +924,6 @@ public abstract class BaseSettingsFragment extends PreferenceFragmentCompat impl
|
|||
}
|
||||
}
|
||||
|
||||
public void setupSpeedCamerasAlert() {
|
||||
Preference speedCamerasAlert = findPreference(settings.SPEED_CAMERAS_UNINSTALLED.getId());
|
||||
speedCamerasAlert.setIcon(getContentIcon(R.drawable.ic_action_alert));
|
||||
speedCamerasAlert.setVisible(!settings.SPEED_CAMERAS_UNINSTALLED.get());
|
||||
}
|
||||
|
||||
public void setupPrefRoundedBg(PreferenceViewHolder holder) {
|
||||
View selectableView = holder.itemView.findViewById(R.id.selectable_list_item);
|
||||
if (selectableView != null) {
|
||||
|
|
|
@ -164,4 +164,10 @@ public class ScreenAlertsFragment extends BaseSettingsFragment implements OnPref
|
|||
showCameras.setIcon(getIcon(R.drawable.list_warnings_speed_camera));
|
||||
showCameras.setVisible(!settings.SPEED_CAMERAS_UNINSTALLED.get());
|
||||
}
|
||||
|
||||
public void setupSpeedCamerasAlert() {
|
||||
Preference speedCamerasAlert = findPreference(settings.SPEED_CAMERAS_UNINSTALLED.getId());
|
||||
speedCamerasAlert.setIcon(getContentIcon(R.drawable.ic_action_alert));
|
||||
speedCamerasAlert.setVisible(!settings.SPEED_CAMERAS_UNINSTALLED.get());
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue