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

Commit 7052de55 authored by Adrian Roos's avatar Adrian Roos
Browse files

Fix action container visibility

Bug: 27720398
Fixes: 27720398
Change-Id: I8ca4430c182ffdef81f5752d5d1bea0a4975e63f
parent c04cf4ba
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -3204,6 +3204,7 @@ public class Notification implements Parcelable
        }
        }


        private void resetStandardTemplateWithActions(RemoteViews big) {
        private void resetStandardTemplateWithActions(RemoteViews big) {
            big.setViewVisibility(R.id.actions_container, View.GONE);
            big.setViewVisibility(R.id.actions, View.GONE);
            big.setViewVisibility(R.id.actions, View.GONE);
            big.removeAllViews(R.id.actions);
            big.removeAllViews(R.id.actions);


@@ -3225,6 +3226,7 @@ public class Notification implements Parcelable


            int N = mActions.size();
            int N = mActions.size();
            if (N > 0) {
            if (N > 0) {
                big.setViewVisibility(R.id.actions_container, View.VISIBLE);
                big.setViewVisibility(R.id.actions, View.VISIBLE);
                big.setViewVisibility(R.id.actions, View.VISIBLE);
                if (N>MAX_ACTION_BUTTONS) N=MAX_ACTION_BUTTONS;
                if (N>MAX_ACTION_BUTTONS) N=MAX_ACTION_BUTTONS;
                for (int i=0; i<N; i++) {
                for (int i=0; i<N; i++) {