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

Commit 7eb54fba authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android Git Automerger
Browse files

am a7c4e5c3: am acfff97c: am 91a4079f: am b0ca5026: am 6d712e06: Remove volume motion delay

* commit 'a7c4e5c3':
  Remove volume motion delay
parents 333b5b7d a7c4e5c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -157,6 +157,7 @@ public class VolumeDialog {
        lp.gravity = Gravity.TOP | Gravity.CENTER_HORIZONTAL;
        lp.y = res.getDimensionPixelSize(R.dimen.volume_offset_top);
        lp.gravity = Gravity.TOP;
        lp.windowAnimations = -1;
        window.setAttributes(lp);
        window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING);

+1 −7
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ public class VolumeDialogMotion {

    private static final float ANIMATION_SCALE = 1.0f;
    private static final int PRE_DISMISS_DELAY = 50;
    private static final int POST_SHOW_DELAY = 200;

    private final Dialog mDialog;
    private final View mDialogView;
@@ -70,13 +69,8 @@ public class VolumeDialogMotion {
                if (D.BUG) Log.d(TAG, "mDialog.onShow");
                final int h = mDialogView.getHeight();
                mDialogView.setTranslationY(-h);
                mHandler.postDelayed(new Runnable() {
                    @Override
                    public void run() {
                startShowAnimation();
            }
                }, POST_SHOW_DELAY);
            }
        });
    }