Fixed a bug where clear all wasn't translated
Change-Id: Ib58611f79ac71ec01f8027cda74a62b71824c03c Fixes: 27597203
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.systemui.statusbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
@@ -51,6 +52,12 @@ public class DismissView extends StackScrollerDecorView {
|
||||
|| touchY > mContent.getY() + mContent.getHeight();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onConfigurationChanged(Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
mDismissButton.setText(R.string.clear_all_notifications_text);
|
||||
}
|
||||
|
||||
public boolean isButtonVisible() {
|
||||
return mDismissButton.getAlpha() != 0.0f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user