am c4a7c191: am 988a8a98: Merge "Update \'No notifications\' text on configuration change" into lmp-dev
* commit 'c4a7c191be3a6fcbff984aa8b54c6378cc94262d': Update 'No notifications' text on configuration change
This commit is contained in:
@@ -17,9 +17,11 @@
|
|||||||
package com.android.systemui.statusbar;
|
package com.android.systemui.statusbar;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.content.res.Configuration;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.animation.Interpolator;
|
import android.view.animation.Interpolator;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.android.systemui.R;
|
import com.android.systemui.R;
|
||||||
import com.android.systemui.statusbar.phone.PhoneStatusBar;
|
import com.android.systemui.statusbar.phone.PhoneStatusBar;
|
||||||
@@ -30,6 +32,12 @@ public class EmptyShadeView extends StackScrollerDecorView {
|
|||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onConfigurationChanged(Configuration newConfig) {
|
||||||
|
super.onConfigurationChanged(newConfig);
|
||||||
|
((TextView) findViewById(R.id.no_notifications)).setText(R.string.empty_shade_text);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected View findContentView() {
|
protected View findContentView() {
|
||||||
return findViewById(R.id.no_notifications);
|
return findViewById(R.id.no_notifications);
|
||||||
|
|||||||
Reference in New Issue
Block a user