Frank-Shanghai / PencilCase

0 stars 0 forks source link

Add goBack function for each page/dialog #18

Closed Frank-Shanghai closed 6 years ago

Frank-Shanghai commented 6 years ago

This is found when running the app on my Android device. Since I didn't use the default go back functionality/navigation. So, if not set back button event, when user clicks back button, will cause some unexpected behavior, blank page. This is because I am using the SPA solution, and only one(acutally more because home page is always in memory) page instance will be available but not stored all pages in memory. So the default go back won't load appropriate page instance into momory. So have to add go back functionality for each page/dialog.

Solution: Add goBack function for each page/dialog to customize the back button event handler.