summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/src/com/android/keyguard/EmergencyButton.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2015-05-04 15:34:22 -0700
committerJorim Jaggi <jjaggi@google.com>2015-05-04 23:46:56 +0000
commit76511c75e67c2da778066dac829c6161b5e96003 (patch)
tree4edc443cf0647995b9d2d6ed261a883c11c75e6a /packages/Keyguard/src/com/android/keyguard/EmergencyButton.java
parent9f74303eb8432aa64a7030f58ab0c3279a20c53e (diff)
downloadframeworks_base-76511c75e67c2da778066dac829c6161b5e96003.zip
frameworks_base-76511c75e67c2da778066dac829c6161b5e96003.tar.gz
frameworks_base-76511c75e67c2da778066dac829c6161b5e96003.tar.bz2
Update emergency call button label when language changes
Bug: 17987231 Change-Id: I74fe6942f4ff965537803d61f3446d5f28a60f9e
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/EmergencyButton.java')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/EmergencyButton.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/EmergencyButton.java b/packages/Keyguard/src/com/android/keyguard/EmergencyButton.java
index 25b1875..1cabcdf 100644
--- a/packages/Keyguard/src/com/android/keyguard/EmergencyButton.java
+++ b/packages/Keyguard/src/com/android/keyguard/EmergencyButton.java
@@ -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.
*/