Merge lp:~mterry/unity8/greeter-hide-indicators into lp:unity8

Proposed by Michael Terry
Status: Merged
Approved by: Michael Terry
Approved revision: 2528
Merged at revision: 2539
Proposed branch: lp:~mterry/unity8/greeter-hide-indicators
Merge into: lp:unity8
Prerequisite: lp:~josharenson/unity8/sessions-model
Diff against target: 43 lines (+17/-3)
2 files modified
qml/Greeter/Greeter.qml (+6/-3)
tests/qmltests/tst_Shell.qml (+11/-0)
To merge this branch: bzr merge lp:~mterry/unity8/greeter-hide-indicators
Reviewer Review Type Date Requested Status
Michael Terry Approve
Unity8 CI Bot continuous-integration Pending
Lukáš Tinkl Pending
Review via email: mp+299344@code.launchpad.net

This proposal supersedes a proposal from 2016-06-30.

Commit message

Make sure indicators and launcher hide when power button is pressed on greeter.

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
 No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
 Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
 NA

 * If you changed the UI, has there been a design review?
 NA

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:2527
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1653/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/2193
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/2221
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2127
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2127
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2127
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2118
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2118/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2118
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2118/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2118
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2118/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2118
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2118/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2118
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2118/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2118
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2118/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2118
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2118/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2118
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2118/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2118
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2118/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1653/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote : Posted in a previous version of this proposal

Better but not quite; you can still see the indicators "rolling up" when you wake the phone up. Previously you couldn't even see the animation, you were taken straight to the lockscreen.

review: Needs Information
Revision history for this message
Michael Terry (mterry) wrote : Posted in a previous version of this proposal

Are you sure that's a regression? I think it just depends on how long you wait until turning the screen back on.

Revision history for this message
Lukáš Tinkl (lukas-kde) wrote : Posted in a previous version of this proposal

Ah :) I stand corrected, indeed if you wait a moment, it will hide completely.

* Did you perform an exploratory manual test run of the code change and any related functionality?

Yes

* Did CI run pass? If not, please explain why.

Not completely, passing locally

review: Approve
Revision history for this message
Michael Terry (mterry) wrote :

I've rebased on sessions-model, just to help keep the coming stack of greeter branches conflict free.

Re-approving from before.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Greeter/Greeter.qml'
2--- qml/Greeter/Greeter.qml 2016-07-06 19:43:54 +0000
3+++ qml/Greeter/Greeter.qml 2016-07-06 19:43:55 +0000
4@@ -71,11 +71,14 @@
5 d.isLockscreen = true;
6 }
7 forcedUnlock = false;
8- if (!required) {
9- showNow(); // loader.onLoaded will select a user
10- } else {
11+ if (required) {
12+ // Normally loader.onLoaded will select a user, but if we're
13+ // already shown, do it manually.
14 d.selectUser(d.currentIndex, true);
15 }
16+ // Even though we may already be shown, we want to call show() for its
17+ // possible side effects, like hiding indicators and such.
18+ showNow();
19 }
20
21 function notifyAppFocusRequested(appId) {
22
23=== modified file 'tests/qmltests/tst_Shell.qml'
24--- tests/qmltests/tst_Shell.qml 2016-07-06 19:43:54 +0000
25+++ tests/qmltests/tst_Shell.qml 2016-07-06 19:43:55 +0000
26@@ -1161,6 +1161,17 @@
27 tryCompare(indicators, "fullyClosed", true);
28 }
29
30+ function test_greeterShownAgainHidesIndicators() {
31+ // Regression test for https://launchpad.net/bugs/1595569
32+
33+ loadShell("phone");
34+ showIndicators();
35+ showGreeter();
36+
37+ var indicators = findChild(shell, "indicators");
38+ tryCompare(indicators, "fullyClosed", true);
39+ }
40+
41 function test_showAndHideGreeterDBusCalls() {
42 loadShell("phone");
43 swipeAwayGreeter();

Subscribers

People subscribed via source and target branches