diff options
| author | 2014-10-07 19:58:28 +0000 | |
|---|---|---|
| committer | 2014-10-07 19:58:28 +0000 | |
| commit | c4a7c191be3a6fcbff984aa8b54c6378cc94262d (patch) | |
| tree | f31da1c815ff6fa3e8154e0c01a2cf3241cb6ee0 | |
| parent | b86671f4b8263affaa561796862bd4149235b1d3 (diff) | |
| parent | 988a8a9820bb3ae331be4932eb9e672a4614efd5 (diff) | |
am 988a8a98: Merge "Update \'No notifications\' text on configuration change" into lmp-dev
* commit '988a8a9820bb3ae331be4932eb9e672a4614efd5':
Update 'No notifications' text on configuration change
| -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 582d165c68fd..0825aa373269 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); } |