Bug 1021583 - Update active app on app switching