niteshpatel / ministocks

Android Stocks Widget
http://niteshpatel.github.io/ministocks
MIT License
53 stars 37 forks source link

Advise users of widget size when restoring backups, and prevent restoring to the wrong size #39

Closed niteshpatel closed 8 years ago

niteshpatel commented 8 years ago

We actually allow restoring to the wrong size widget, since the backups are almost completely compatible. We ignore the widgetSize and widgetView values, that are used to layout the widget (and was breaking stuff if the wrong size widget was restored).

The net effect is that the restore works, but if they try restoring a size 10 widget to a size 4 widget then we show them a message saying some stocks could not be restored.

This is a better solution as it allows re-use of backups across widget types.