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

Commit 450de8a9 authored by Annie Chin's avatar Annie Chin
Browse files

Guarantee execution of HistoryFragment replacement.

Fixes: 32807698

Call executePendingTransactions() in showHistoryFragment().

Change-Id: I54f1523550eb672e8999855652d604ccb65c7cdb
parent 1d99be1b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1215,11 +1215,12 @@ public class Calculator extends Activity
            return;
        }
        if (!mDragLayout.isOpen()) {
            getFragmentManager().beginTransaction()
            manager.beginTransaction()
                    .replace(R.id.history_frame, mHistoryFragment, HistoryFragment.TAG)
                    .setTransition(transit)
                    .addToBackStack(HistoryFragment.TAG)
                    .commit();
            manager.executePendingTransactions();
        }
        // TODO: pass current scroll position of result
    }