Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8ae8161 authored by Meninblack007's avatar Meninblack007
Browse files

Misc fixes

parent ae4fa5b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ public class EmergencyButton extends Button {
                } else {
                    // Only show if there is a secure screen (pin/pattern/SIM pin/SIM puk);
                    visible = mLockPatternUtils.isSecure(KeyguardUpdateMonitor.getCurrentUser()) ||
                              mContext.getResources().getBoolean(R.bool.config_showEmergencyButton);
                              SystemProperties.getBoolean("persist.radio.emgcy_btn_onswipe", false);
                }

                if (mContext.getResources().getBoolean(R.bool.kg_hide_emgcy_btn_when_oos)) {
+0 −6
Original line number Diff line number Diff line
@@ -35,12 +35,6 @@ public class TetherUtil {
             .KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL);
    }

    public static boolean setWifiTethering(boolean enable, Context context) {
        final WifiManager wifiManager =
                (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
        return wifiManager.setWifiApEnabled(null, enable);
    }

    public static boolean isProvisioningNeeded(Context context) {
        // Keep in sync with other usage of config_mobile_hotspot_provision_app.
        // ConnectivityManager#enforceTetherChangePermission
+1 −1
Original line number Diff line number Diff line
@@ -855,7 +855,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
    }

    private void updateEmergencyButton() {
        if(mContext.getResources().getBoolean(R.bool.config_showEmergencyButton)){
        if (SystemProperties.getBoolean("persist.radio.emgcy_btn_onswipe",false)) {
            if (mEmergencyButton != null) {
                mEmergencyButton.updateEmergencyCallButton();
            }
+0 −1
Original line number Diff line number Diff line
@@ -662,7 +662,6 @@ public class VolumeDialog implements TunerService.Tunable {
    private void removeRow(VolumeRow volumeRow) {
        mRows.remove(volumeRow);
        mDialogContentView.removeView(volumeRow.view);
        mDialogContentView.removeView(volumeRow.space);
    }

    private void onStateChangedH(State state) {