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

Commit 03e64d64 authored by Alexey Kuzmin's avatar Alexey Kuzmin Committed by android-build-merger
Browse files

Merge "Revert "Change attrbute of double-power-to-camera vibration"" into qt-dev

am: 697989a6

Change-Id: I507f6a2fac875a1fcd47a73f49ff4e0950170b08
parents cea66dd3 697989a6
Loading
Loading
Loading
Loading
+1 −12
Original line number Original line Diff line number Diff line
@@ -314,17 +314,6 @@ public class StatusBar extends SystemUI implements DemoMode,
    /** If true, the lockscreen will show a distinct wallpaper */
    /** If true, the lockscreen will show a distinct wallpaper */
    public static final boolean ENABLE_LOCKSCREEN_WALLPAPER = true;
    public static final boolean ENABLE_LOCKSCREEN_WALLPAPER = true;


    private static final AudioAttributes AUDIO_ATTRIBUTES =
            new AudioAttributes.Builder()
                    .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
                    // Temporary fix for b/123870990. No time in this release to
                    // introduce a new vibration type, but we need to distinguish these vibrations
                    // from other haptic feedback vibrations. Fortunately, Alarm vibrations have
                    // exactly the same behavior as we need
                    // TODO: refactor within the scope of b/132170758
                    .setUsage(AudioAttributes.USAGE_ALARM)
                    .build();

    static {
    static {
        boolean onlyCoreApps;
        boolean onlyCoreApps;
        try {
        try {
@@ -3704,7 +3693,7 @@ public class StatusBar extends SystemUI implements DemoMode,


    private void vibrateForCameraGesture() {
    private void vibrateForCameraGesture() {
        // Make sure to pass -1 for repeat so VibratorService doesn't stop us when going to sleep.
        // Make sure to pass -1 for repeat so VibratorService doesn't stop us when going to sleep.
        mVibrator.vibrate(mCameraLaunchGestureVibePattern, -1 /* repeat */, AUDIO_ATTRIBUTES);
        mVibrator.vibrate(mCameraLaunchGestureVibePattern, -1 /* repeat */);
    }
    }


    /**
    /**