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

Commit 76511c75 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Update emergency call button label when language changes

Bug: 17987231
Change-Id: I74fe6942f4ff965537803d61f3446d5f28a60f9e
parent 9f74303e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.keyguard;

import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.PowerManager;
import android.os.SystemClock;
import android.os.UserHandle;
@@ -104,6 +105,12 @@ public class EmergencyButton extends Button {
        updateEmergencyCallButton();
    }

    @Override
    protected void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        updateEmergencyCallButton();
    }

    /**
     * Shows the emergency dialer or returns the user to the existing call.
     */