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

Commit 948a4e6e authored by nicolasroard's avatar nicolasroard
Browse files

Fix history panel first appearance

Change-Id: I49c3f91d1d65cc64b15080c64709f769fc8a8f22
parent d98f781d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -548,6 +548,12 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,

    private int translateMainPanel(View viewPanel) {
        int accessoryPanelWidth = viewPanel.getWidth();
        if (accessoryPanelWidth == 0) {
            // TODO: fixes this by using a fragment. Currently,
            // the first time we get called the panel hasn't been
            // layed out yet, so we get a size zero.
            accessoryPanelWidth = (int) getPixelsFromDip(200);
        }
        int mainViewWidth = findViewById(R.id.mainView).getWidth();
        int mainPanelWidth = mImageShow.getDisplayedImageBounds().width();
        if (mainPanelWidth == 0) {