Add NoDisplay test when resuming Activity
Add NoDisplay test when resuming Activity

When an activity has no display [i.e. it's invisible], it
must call finish() before onResume() completes

Bug: 18279655
Change-Id: I2b8562b852c05fdfff4e6a6922ce47e9e948a880

xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base