on xenial help sign in
fix animation issue with focusing a running app when there's no focused app
2253704Michael Zanetti
qml/Stages/PhoneStage.qml+7−3
@@ -137,9 +137,13 @@ Item {
137 }
137 }
138
138
139 function switchToApp(appId) {
139 function switchToApp(appId) {
140+ if (priv.focusedAppId) {
140− priv.newFocusedAppId = appId;
141+ priv.newFocusedAppId = appId;
141− root.fullscreen = ApplicationManager.findApplication(appId).fullscreen;
142+ root.fullscreen = ApplicationManager.findApplication(appId).fullscreen;
142− applicationSwitchingAnimation.start();
143+ applicationSwitchingAnimation.start();
144+ } else {
145+ ApplicationManager.focusApplication(appId);
146+ }
143 }
147 }
144
148
145 function indexOf(appId) {
149 function indexOf(appId) {