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

Commit f67fed25 authored by Beverly Tai's avatar Beverly Tai Committed by Automerger Merge Worker
Browse files

Merge "Fix talkback ordering of QS zen duration dialog" into rvc-dev am:...

Merge "Fix talkback ordering of QS zen duration dialog" into rvc-dev am: 41eb9683 am: 58d5212e am: d81a039c

Change-Id: I2150868618bc4a5f8f421a4d302f2226f7d4f73f
parents c2480caa d81a039c
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -33,6 +33,7 @@ import android.util.Log;
import android.util.Slog;
import android.util.Slog;
import android.view.LayoutInflater;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.LinearLayout;
@@ -395,8 +396,12 @@ public class EnableZenModeDialog {
            button1.setAlpha(button1.isEnabled() ? 1f : .5f);
            button1.setAlpha(button1.isEnabled() ? 1f : .5f);
            button2.setAlpha(button2.isEnabled() ? 1f : .5f);
            button2.setAlpha(button2.isEnabled() ? 1f : .5f);
        } else {
        } else {
            button1.setVisibility(View.GONE);
            if (button1 != null) {
            button2.setVisibility(View.GONE);
                ((ViewGroup) row).removeView(button1);
            }
            if (button2 != null) {
                ((ViewGroup) row).removeView(button2);
            }
        }
        }
    }
    }