google / blockly-android

Blockly for Android
Apache License 2.0
673 stars 209 forks source link

Add an autosave feature to AbstractBlocklyActivity #594

Closed RoboErikG closed 7 years ago

RoboErikG commented 7 years ago

Adds auto saving and auto loading the workspace to the AbstractBlocklyActivity with hooks to override the file it is saved to or to override the functionality. All demo apps are updated to use a unique filename for saving and autosaving and DevTests overrides the autosave/load to prevent replacing the test workspace that is loaded each time the activity is started.

Fixes #534


This change is Reviewable

AnmAtAnm commented 7 years ago

:lgtm: with one nit to update checkAllowRestoreBlocklyState() doc.


Review status: 0 of 9 files reviewed at latest revision, all discussions resolved.


Comments from Reviewable