summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-10-06 12:27:55 -0700
committerJorim Jaggi <jjaggi@google.com>2014-10-06 12:27:55 -0700
commit8cc8dfed32cd6ecad0d6d6d24c3380ecce58fee9 (patch)
tree26cbf1184242058fce95c1cb0eb296c7ae2046ee /packages
parent78cc93ec80f5dcc487db697a1f9a545890745847 (diff)
downloadframeworks_base-8cc8dfed32cd6ecad0d6d6d24c3380ecce58fee9.zip
frameworks_base-8cc8dfed32cd6ecad0d6d6d24c3380ecce58fee9.tar.gz
frameworks_base-8cc8dfed32cd6ecad0d6d6d24c3380ecce58fee9.tar.bz2
Update 'No notifications' text on configuration change
Bug: 17821946 Change-Id: Ia4518426ce059be5312d652bb27bbe11a1626518
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/EmptyShadeView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/EmptyShadeView.java b/packages/SystemUI/src/com/android/systemui/statusbar/EmptyShadeView.java
index 582d165..0825aa3 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/EmptyShadeView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/EmptyShadeView.java
@@ -17,9 +17,11 @@
package com.android.systemui.statusbar;
import android.content.Context;
+import android.content.res.Configuration;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.Interpolator;
+import android.widget.TextView;
import com.android.systemui.R;
import com.android.systemui.statusbar.phone.PhoneStatusBar;
@@ -31,6 +33,12 @@ public class EmptyShadeView extends StackScrollerDecorView {
}
@Override
+ protected void onConfigurationChanged(Configuration newConfig) {
+ super.onConfigurationChanged(newConfig);
+ ((TextView) findViewById(R.id.no_notifications)).setText(R.string.empty_shade_text);
+ }
+
+ @Override
protected View findContentView() {
return findViewById(R.id.no_notifications);
}