sarriaroman / photoviewer

PhotoViewer Cordova Plugin
MIT License
155 stars 202 forks source link

Fixes mArgs beeing null on recreation of activity #233

Open sithwarrior opened 1 year ago

sithwarrior commented 1 year ago

This is an attempt to fix issues where mArgs is null, and causes a crash in the plug-in.

Im suspecting its because sometimes the intent is being recreated by the OS, to save power/memory, and then mArgs isn't being set, because the intent/activity is not created from the photoviewer.

I changed it so the values are passed using putExtra instead, which seems to be the official way to solve this