Handle activity resume from file picker properly