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

Commit 75b8670f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Gallery2: Modify the action of rewind and forward button" into LA.BR.1.2.3

parents 53092a93 67935971
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.Rect;
import android.os.Handler;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.view.KeyEvent;
@@ -50,6 +51,7 @@ import org.codeaurora.gallery3d.video.ExtensionHelper;
import org.codeaurora.gallery3d.video.ScreenModeManager;
import org.codeaurora.gallery3d.video.ScreenModeManager.ScreenModeListener;

import java.util.Locale;

/**
 * The playback controller for the Movie Player.
@@ -840,12 +842,22 @@ public class MovieControllerOverlay extends CommonControllerOverlay implements
                mListenerForRewind.onStopVideo();
            } else if (v == mRewind) {
                Log.v(TAG, "ControllerRewindAndForwardExt onClick mRewind");
                if (TextUtils.getLayoutDirectionFromLocale(Locale.getDefault())
                        == View.LAYOUT_DIRECTION_RTL) {
                    mListenerForRewind.onForward();
                } else {
                    mListenerForRewind.onRewind();
                }
            } else if (v == mForward) {
                Log.v(TAG, "ControllerRewindAndForwardExt onClick mForward");
                if (TextUtils.getLayoutDirectionFromLocale(Locale.getDefault())
                        == View.LAYOUT_DIRECTION_RTL) {
                    mListenerForRewind.onRewind();
                } else {
                    mListenerForRewind.onForward();
                }
            }
        }

        public void onStartHiding() {
            Log.v(TAG, "ControllerRewindAndForwardExt onStartHiding");