Merge "Update 'No notifications' text on configuration change" into lmp-dev
This commit is contained in:
@@ -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;
|
||||
@@ -30,6 +32,12 @@ public class EmptyShadeView extends StackScrollerDecorView {
|
||||
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
|
||||
protected View findContentView() {
|
||||
return findViewById(R.id.no_notifications);
|
||||
|
||||
Reference in New Issue
Block a user