In PhotoGrid, go to Settings (in the latest UI: 'user' icon at bottom right, then the three dots icon at top right), scroll down to the Charge Master section and tap it, then slide the Enabled switch to off. This prevented it popping up when I plug in my charger.