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

Commit 4c123e2a authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

camera: enable hw accelerated for smooth animations

- Speed up the animation aswell
parent cbc30c9d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
        android:name=".OpenCameraApplication"
        android:theme="@style/AppTheme"
        android:largeHeap="true"
        android:hardwareAccelerated="true"
        android:requestLegacyExternalStorage="true"
        >
        <!-- should not change the android:name, including moving to a subpackage - see http://android-developers.blogspot.co.uk/2011/06/things-that-cannot-change.html -->
+1 −1
Original line number Diff line number Diff line
@@ -2642,7 +2642,7 @@ public class DrawPreview {
        if( camera_controller != null && this.thumbnail_anim && last_thumbnail != null ) {
            int ui_rotation = preview.getUIRotation();
            long time = time_ms - this.thumbnail_anim_start_ms;
            final long duration = 500;
            final long duration = 400;
            if( time > duration ) {
                if( MyDebug.LOG )
                    Log.d(TAG, "thumbnail_anim finished");