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

Commit 40a0ee65 authored by Bryce Lee's avatar Bryce Lee
Browse files

Expose userActivityTimeout through @SystemApi getter/setter.

This change will make it accessible to unbundled wear home.

Bug: 18721755
Change-Id: I0634dbc5d8d8ebe25e45af0a1b1186fda5254dd5
parent 1836f6b8
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.view;

import android.annotation.SystemApi;
import android.app.Presentation;
import android.content.Context;
import android.content.pm.ActivityInfo;
@@ -1591,6 +1592,18 @@ public interface WindowManager extends ViewManager {
            return mTitle;
        }

        /** @hide */
        @SystemApi
        public final void setUserActivityTimeout(long timeout) {
            userActivityTimeout = timeout;
        }

        /** @hide */
        @SystemApi
        public final long getUserActivityTimeout() {
            return userActivityTimeout;
        }

        public int describeContents() {
            return 0;
        }