Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32c557ce authored by Chris Wren's avatar Chris Wren
Browse files

post user activity on widget pager moves

Change-Id: I3aa760090cb2036045045fc01d933cf35a9bbff9
Proto-Id: I9b98788dc108333657239b07ff36ce69892a3f96
parent 0b728244
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -113,10 +113,7 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit
        if (mPage != newPageIndex) {
            int oldPageIndex = mPage;
            mPage = newPageIndex;
            if (mCallbacks != null) {
                mCallbacks.onUserActivityTimeoutChanged();
                mCallbacks.userActivity();
            }
            userActivity();
            KeyguardWidgetFrame oldWidgetPage = getWidgetPageAt(oldPageIndex);
            if (oldWidgetPage != null) {
                oldWidgetPage.onActive(false);
@@ -131,6 +128,13 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit
        }
    }

    private void userActivity() {
        if (mCallbacks != null) {
            mCallbacks.onUserActivityTimeoutChanged();
            mCallbacks.userActivity();
        }
    }

    public void showPagingFeedback() {
        // Nothing yet.
    }
@@ -257,6 +261,7 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit
            mViewStateManager.onPageBeginMoving();
        }
        showOutlinesAndSidePages();
        userActivity();
    }

    @Override