Merge "Fix: Double-free error on RemoteFillService" am: 5b04f89343 am: b23ec4eaa7

am: fddb86a80c

Change-Id: I87de2e6bc8f446dc0cddf41cb3e40d76cdc55d98
This commit is contained in:
Tetsutoki Shiozawa
2018-02-28 00:24:18 +00:00
committed by android-build-merger

View File

@@ -356,7 +356,8 @@ final class RemoteFillService implements DeathRecipient {
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
if (mDestroyed || !mBinding) {
mContext.unbindService(mServiceConnection);
// This is abnormal. Unbinding the connection has been requested already.
Slog.wtf(LOG_TAG, "onServiceConnected was dispatched after unbindService.");
return;
}
mBinding = false;