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

Commit 8b3ce9b0 authored by nicolasroard's avatar nicolasroard Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when showing history" into gb-ub-photos-arches

parents 635aab56 f0eb72ea
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -457,6 +457,9 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
        int accessoryPanelWidth = viewPanel.getWidth();
        int mainViewWidth = findViewById(R.id.mainView).getWidth();
        int mainPanelWidth = mImageShow.getDisplayedImageBounds().width();
        if (mainPanelWidth == 0) {
            mainPanelWidth = mainViewWidth;
        }
        int leftOver = mainViewWidth - mainPanelWidth - accessoryPanelWidth;
        if (leftOver < 0) {
            return -accessoryPanelWidth;
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ public class ImageShow extends View implements OnGestureListener,
    private HistoryAdapter mHistoryAdapter = null;
    private ImageStateAdapter mImageStateAdapter = null;

    private Rect mImageBounds = null;
    private Rect mImageBounds = new Rect();

    private boolean mTouchShowOriginal = false;
    private long mTouchShowOriginalDate = 0;