Loading src/org/lineageos/lineageparts/input/PowerMenuActions.java +7 −1 Original line number Diff line number Diff line /* * Copyright (C) 2014-2015 The CyanogenMod Project * 2017-2021 The LineageOS Project * 2017-2022 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -32,6 +32,7 @@ import com.android.internal.widget.LockPatternUtils; import org.lineageos.internal.util.PowerMenuConstants; import org.lineageos.lineageparts.R; import org.lineageos.lineageparts.SettingsPreferenceFragment; import org.lineageos.lineageparts.utils.TelephonyUtils; import java.util.ArrayList; import java.util.List; Loading Loading @@ -84,6 +85,11 @@ public class PowerMenuActions extends SettingsPreferenceFragment { } } if (!TelephonyUtils.isVoiceCapable(getActivity())) { getPreferenceScreen().removePreference(mEmergencyPref); mEmergencyPref = null; } mLocalUserConfig = mLineageGlobalActions.getLocalUserConfig(); } Loading Loading
src/org/lineageos/lineageparts/input/PowerMenuActions.java +7 −1 Original line number Diff line number Diff line /* * Copyright (C) 2014-2015 The CyanogenMod Project * 2017-2021 The LineageOS Project * 2017-2022 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -32,6 +32,7 @@ import com.android.internal.widget.LockPatternUtils; import org.lineageos.internal.util.PowerMenuConstants; import org.lineageos.lineageparts.R; import org.lineageos.lineageparts.SettingsPreferenceFragment; import org.lineageos.lineageparts.utils.TelephonyUtils; import java.util.ArrayList; import java.util.List; Loading Loading @@ -84,6 +85,11 @@ public class PowerMenuActions extends SettingsPreferenceFragment { } } if (!TelephonyUtils.isVoiceCapable(getActivity())) { getPreferenceScreen().removePreference(mEmergencyPref); mEmergencyPref = null; } mLocalUserConfig = mLineageGlobalActions.getLocalUserConfig(); } Loading