Merge "Destroy ActivityRecord when it is removed from the hierarchy" into sc-v2-dev am: 8d0616af08 am: 510dcd6feb

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15463863

Change-Id: Icbf68e3f18c9ec53defabdf3a600cf89e86c0662