diff options
-rw-r--r-- | src/com/android/stk/StkAppService.java | 7 |
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); } |