wm: hacky fix for system_server crash
When opening pre-Nougat app that did not specify resizable attribute (pre Nougat era) and also is forced to portrait orientation in freeform and then resizing its window, system_server will crash due to invalid resize. To avoid whole device going down, we just catch the crash - app will stop working (window will be empty), BUT this is a much better thing to have than whole device crashing. This fix is even more needed because since Android 13, Google saves freeform bounds, which means when you reopen the unresizable app, it will instantly crash system_server again and you cannot ever again use this app in freeform without factory reset. The proper fix is to enable force resizable in developer settings, or asking the app devs to fix it (by making the app resizable). Further Framework-side fixes for this should be done by AOSP. Change-Id: I40d48c0caa9c376160f427d27260bd6bd5f66978
Please register or sign in to comment