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

Commit 8a1c9ee6 authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Merge "base: fix volumen panel traslucent after stream icon click" into cm-11.0

parents 017b443b 115f09b2
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -1181,18 +1181,22 @@ public class VolumePanel extends Handler implements OnSeekBarChangeListener, Vie
    }

    public void onClick(View v) {
        if (mTranslucentDialog && mShouldRunDropTranslucentAnimation) {
            startRemoveTranslucentAnimation();
        }
        if (v == mMoreButton) {
            expand();
        } else if (v instanceof ImageView) {
        boolean moreButton = v == mMoreButton;
        if (v instanceof ImageView && !moreButton) {
            Intent volumeSettings = new Intent(android.provider.Settings.ACTION_SOUND_SETTINGS);
            volumeSettings.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
            volumeSettings.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
                    | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
            forceTimeout();
            mContext.startActivity(volumeSettings);
            return;
        }

        if (mTranslucentDialog && mShouldRunDropTranslucentAnimation) {
            startRemoveTranslucentAnimation();
        }
        if (moreButton) {
            expand();
        }
        resetTimeout();
    }