Merge "Fix: Double-free error on RemoteFillService"

am: 5b04f89343

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

View File

@@ -342,7 +342,8 @@ final class RemoteFillService implements DeathRecipient {
@Override @Override
public void onServiceConnected(ComponentName name, IBinder service) { public void onServiceConnected(ComponentName name, IBinder service) {
if (mDestroyed || !mBinding) { 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; return;
} }
mBinding = false; mBinding = false;