diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-10-07 17:48:00 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-10-07 17:48:01 +0000 |
commit | 988a8a9820bb3ae331be4932eb9e672a4614efd5 (patch) | |
tree | cfcde53174caabac5cc0d496c901374b585b89ac /packages | |
parent | 41bb3455e44dc8fde4569bbfd56fa20c6da8a27d (diff) | |
parent | 8cc8dfed32cd6ecad0d6d6d24c3380ecce58fee9 (diff) | |
download | frameworks_base-988a8a9820bb3ae331be4932eb9e672a4614efd5.zip frameworks_base-988a8a9820bb3ae331be4932eb9e672a4614efd5.tar.gz frameworks_base-988a8a9820bb3ae331be4932eb9e672a4614efd5.tar.bz2 |
Merge "Update 'No notifications' text on configuration change" into lmp-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/EmptyShadeView.java | 8 |
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); } |