StockTicker
StockTicker copied to clipboard
Widget import export
Hi here is the bare bones of widget export import - I have only exported/imported the name, ticker list and 8 widge specific setings to a JSON file and back again. Im by no means an android expert, keen to learn if I have made any blunders
Note that this has exposed a pre-existing bug in that the spinner for choosing the widget is not updated when the name of a widget changes. Maybe you know how to do this - I worked out where in the WidgetSettingsFragment it needed to go but am not savvy enough to fix it just yet.
here is an example exported widget { "autoSort": "true", "background": "1", "hideHeader": "false", "layout": "1", "name": "FANG", "showBold": "false", "showCurrency": "false", "textColor": "2", "tickerList": "MSFT,GOOG,AAPL,TSLA,PLTR,INTC,META,AMZN,GME,AMC", "widgetSize": "1" }
My background is I was an enterprise software dev for a long time but retired from it, Im new to Kotlin but I have used js, java, c# and others. I use and love your widget so I wanted to contribute.
Just to let you know, I am still working on this albeit slowly. Currently trying to solve this widget name bug (issue 285 https://github.com/premnirmal/StockTicker/issues/285 ) which occurs in the same code.