Merge "Add null check around mImeRequester.getWindow()" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7c2b1d57db
@@ -257,8 +257,10 @@ final class ImeInsetsSourceProvider extends InsetsSourceProvider {
|
|||||||
void dumpDebug(ProtoOutputStream proto, long fieldId, @WindowTraceLogLevel int logLevel) {
|
void dumpDebug(ProtoOutputStream proto, long fieldId, @WindowTraceLogLevel int logLevel) {
|
||||||
final long token = proto.start(fieldId);
|
final long token = proto.start(fieldId);
|
||||||
super.dumpDebug(proto, INSETS_SOURCE_PROVIDER, logLevel);
|
super.dumpDebug(proto, INSETS_SOURCE_PROVIDER, logLevel);
|
||||||
if (mImeRequester != null) {
|
final WindowState imeRequesterWindow =
|
||||||
mImeRequester.getWindow().dumpDebug(proto, IME_TARGET_FROM_IME, logLevel);
|
mImeRequester != null ? mImeRequester.getWindow() : null;
|
||||||
|
if (imeRequesterWindow != null) {
|
||||||
|
imeRequesterWindow.dumpDebug(proto, IME_TARGET_FROM_IME, logLevel);
|
||||||
}
|
}
|
||||||
proto.write(IS_IME_LAYOUT_DRAWN, mIsImeLayoutDrawn);
|
proto.write(IS_IME_LAYOUT_DRAWN, mIsImeLayoutDrawn);
|
||||||
proto.end(token);
|
proto.end(token);
|
||||||
|
|||||||
Reference in New Issue
Block a user