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

Commit c072a617 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Fixed a bug where clear all wasn\'t translated" into nyc-dev

am: db5c5653

* commit 'db5c5653':
  Fixed a bug where clear all wasn't translated

Change-Id: I0db02fb5166976870f3c31619b2363f3b347e3c9
parents 11cb3030 db5c5653
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;
    }