Page 1 of 1

Problem with widget import from backup

Posted: 17 Aug 2016 07:20
by eldron
Hi,
I have just changed phones and used titanium backup to restore automagic to the new phone. It´s the same phone model (both Galaxy S4), so I didn´t expect any major problems. I started automagic and was told that because of a security measure all flows had been disabled. After activating all flows and giving automagic all its necessary permissions, all my flows were working again :-)
I thought I was sorted now, until I tried to use a widget. The overlay opened just fine, but when I clicked on any of the buttons nothing happened. I tried another widget - same problem. So I checked the widgets in the editor and saw that all the clickable action fields are empty - in all the widgets.
As I have a backup of the widget xml file on my computer, I copied that into the automagic folder on my phone and replaced the existing one. I then opened automagic and the clickable actions were all gone again. I opened the xml file and compared it to the original file - the file had been changed and all clickable action entries were empty.
So I copied the file again, opened it on my phone (before opening automagic)- all clickable action entries were there. I opened automagic, then opened the xml file again - all clickable actions entries were gone.
Assigning a new clickable action to an existing widget does work and that new entry does not get deleted.
Any idea what´s causing this?

Re: Problem with widget import from backup

Posted: 17 Aug 2016 08:18
by MURTUMA
You must wait for Martin to come back to work for dealing with the problem, but I might have a workaround for you. Instead of manually placing widgets.xml in Automagic folder, copy it somewhere else and use action Import Flows/Widgets to import the file to see if that works.

Re: Problem with widget import from backup

Posted: 17 Aug 2016 10:00
by eldron
Hi Murtuma,
thanks for your quick reply.
I´ll try your workaround when I get back from work. Do I need to delete the existing widgets first or will they be overwritten?

Re: Problem with widget import from backup

Posted: 17 Aug 2016 10:42
by MURTUMA
I'm not sure. I can't reproduce your problem so this is just a guess work. However, I'd do it just to be sure.

Re: Problem with widget import from backup

Posted: 17 Aug 2016 21:04
by eldron
@Murtuma
Just wanted to thank you for your tip, the import action did the trick. I ticked the box to overwrite existing flows/widgets and now it´s all working again.
Would still be interesting to know what went wrong in the first place though.