summaryrefslogtreecommitdiff
path: root/src/com
diff options
context:
space:
mode:
authorYing Xu <yinxu@google.com>2020-01-22 18:30:06 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-01-22 18:30:06 +0000
commit3160e6c3c70cd5cd75bc57ebfe41a201b83371f1 (patch)
tree89db5d7fd38bf5011430d88c04297ccd1e0f2c2c /src/com
parent35b9789c65da2c9f05ecd7f82d39340657645e4e (diff)
parenta14d13ddf26e9ef71ac419d39e4f85cd1c2fe62f (diff)
downloadStk-3160e6c3c70cd5cd75bc57ebfe41a201b83371f1.tar.gz
Merge "[Telephony Mainline] Telephony uses own user activity notification"
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/stk/StkAppService.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index 2bd8af0..dc66de3 100644
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -72,6 +72,7 @@ import android.widget.TextView;
import android.widget.Toast;
import com.android.internal.telephony.GsmAlphabet;
+import com.android.internal.telephony.ITelephony;
import com.android.internal.telephony.PhoneConfigurationManager;
import com.android.internal.telephony.PhoneConstants;
import com.android.internal.telephony.cat.AppInterface;
@@ -1823,12 +1824,12 @@ public class StkAppService extends Service implements Runnable {
registerReceiver(mUserActivityReceiver, new IntentFilter(
WindowManagerPolicyConstants.ACTION_USER_ACTIVITY_NOTIFICATION));
try {
- IWindowManager wm = IWindowManager.Stub.asInterface(
+ ITelephony telephony = ITelephony.Stub.asInterface(
TelephonyFrameworkInitializer
.getTelephonyServiceManager()
- .getWindowServiceRegisterer()
+ .getTelephonyServiceRegisterer()
.get());
- wm.requestUserActivityNotification();
+ telephony.requestUserActivityNotification();
} catch (RemoteException e) {
CatLog.e(LOG_TAG, "failed to init WindowManager:" + e);
}