Fix using the base type for checking When a window is a sub-window, its `mAttr.type` won't be captured by `isSystemAlertWindowType`. Therefore, the window could run into the early return condition and skip the hide/show in `setHiddenWhileSuspended` when its top parent window is a system alert window and the app is suspended, which will lead to security concerns. Therefore, we check the base type of the window instead. Bug: 493714520 Test: atest WindowStateTests Flag: EXEMPT BUGFIX Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:617b18b15e675266e52fd88b69506ad7d5f86778 Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:88d2759ddc055c36e56b79ae1f3e8139e956a1bb Merged-In: Ia0c154fca56db7c0c89abc2ea09af600d4990323 Change-Id: Ia0c154fca56db7c0c89abc2ea09af600d4990323