on xenial help sign in
fix animation issue with focusing a running app when there's no focused app
commit22537042dcdb246ecaefd0b6da9c7ba035f757f2 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 20 Mar 2014, 11:39 (13 years ago) parent5b5bec2
1 file changed+7−3
qml/Stages/PhoneStage.qml+7−3
qml/Stages/PhoneStage.qml+7−3
@@ -137,9 +137,13 @@ Item {
137137 }
138138
139139 function switchToApp(appId) {
140− priv.newFocusedAppId = appId;
141− root.fullscreen = ApplicationManager.findApplication(appId).fullscreen;
142− applicationSwitchingAnimation.start();
140+ if (priv.focusedAppId) {
141+ priv.newFocusedAppId = appId;
142+ root.fullscreen = ApplicationManager.findApplication(appId).fullscreen;
143+ applicationSwitchingAnimation.start();
144+ } else {
145+ ApplicationManager.focusApplication(appId);
146+ }
143147 }
144148
145149 function indexOf(appId) {