Merge "Fix a wrong UID can be logged"
This commit is contained in:
@@ -1660,15 +1660,15 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
|
||||
|
||||
@Override
|
||||
public void updateStatusIcon(IBinder token, String packageName, int iconId) {
|
||||
long ident = Binder.clearCallingIdentity();
|
||||
try {
|
||||
synchronized (mMethodMap) {
|
||||
if (!calledWithValidToken(token)) {
|
||||
final int uid = Binder.getCallingUid();
|
||||
Slog.e(TAG, "Ignoring updateStatusIcon due to an invalid token. uid:" + uid
|
||||
+ " token:" + token);
|
||||
return;
|
||||
}
|
||||
synchronized (mMethodMap) {
|
||||
if (!calledWithValidToken(token)) {
|
||||
final int uid = Binder.getCallingUid();
|
||||
Slog.e(TAG, "Ignoring updateStatusIcon due to an invalid token. uid:" + uid
|
||||
+ " token:" + token);
|
||||
return;
|
||||
}
|
||||
final long ident = Binder.clearCallingIdentity();
|
||||
try {
|
||||
if (iconId == 0) {
|
||||
if (DEBUG) Slog.d(TAG, "hide the small icon for the input method");
|
||||
if (mStatusBar != null) {
|
||||
@@ -1693,9 +1693,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
|
||||
mStatusBar.setIconVisibility(mSlotIme, true);
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(ident);
|
||||
}
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(ident);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user