Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 964db75d authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where clear all wasn't translated

Change-Id: Ib58611f79ac71ec01f8027cda74a62b71824c03c
Fixes: 27597203
parent 967ed2a1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;
    }