Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix problem with translucent activities on Pixel devices #5
After opening a browser from BrowserLoginActivity it shouldn't finish. It should be still in Activity task and save it state. BrowserDataActivity receives redirect in the browser and recalls BrowserLoginActivity for restoring it and drop browser in Activity task. Then BrowserLoginActivity completes authorization and sends the result to application in setResult().
Frankly, I haven't tested this fix thoroughly because of we already use sdk 2.1.1, and don't want to move back to 2.1.0. It would be nice if you could publish sources for 2.1.1 (see issue #3).
As I understand, we need behavior like FLAG_ACTIVITY_FORWARD_RESULT provides. To be able to pass result directly from the third activity to the first one (skipping the second activity).
But it seems if we start a browser we can't do that.