Touch is not working

Problem: {
    1. Sometime ActivityRecordInputSink does not move to the same display as like it's parent ActivityRecord
    2. Due to which touch events does not work for the device
}

Solution: {
    1. During onDisplayChanged update the ActivityRecordInputSink's inputHandle's display ID
}

Bug: 268301238
Signed-off-by: pioush.kumar-IN009423 <pioush.kumar@oppo.com>
Change-Id: Ia0361fd98e9ff7128153ff664825fd62c5ca6258
This commit is contained in:
pioush.kumar-IN009423
2023-02-28 18:11:28 +05:30
committed by Linus Tufvesson
parent c1992841ee
commit 4861a80205

View File

@@ -92,6 +92,7 @@ class ActivityRecordInputSink {
} else {
mInputWindowHandleWrapper.setInputConfigMasked(0, InputConfig.NOT_TOUCHABLE);
}
mInputWindowHandleWrapper.setDisplayId(mActivityRecord.getDisplayId());
return mInputWindowHandleWrapper;
}