Add better service reporting.
This will be used elsewhere. Change-Id: Id561fa7fed5eb65446312cb697813483903d33a6
This commit is contained in:
@@ -32,6 +32,7 @@ import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
import android.app.ActivityManagerNative;
|
||||
import android.app.AlertDialog;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.ComponentName;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
@@ -765,6 +766,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
|
||||
|
||||
mCurIntent = new Intent(InputMethod.SERVICE_INTERFACE);
|
||||
mCurIntent.setComponent(info.getComponent());
|
||||
mCurIntent.putExtra(Intent.EXTRA_CLIENT_LABEL,
|
||||
com.android.internal.R.string.input_method_binding_label);
|
||||
mCurIntent.putExtra(Intent.EXTRA_CLIENT_INTENT, PendingIntent.getActivity(
|
||||
mContext, 0, new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS), 0));
|
||||
if (mContext.bindService(mCurIntent, this, Context.BIND_AUTO_CREATE)) {
|
||||
mLastBindTime = SystemClock.uptimeMillis();
|
||||
mHaveConnection = true;
|
||||
|
||||
Reference in New Issue
Block a user