Tests: fragment destroyed improperly during pop.
Bug 34850219
When multiple back stack records were popped together,
to the bottom of the stack, the fragment at the bottom
would be destroyed. This was caused by the back stack
being bumped prior to executing the operations. The
back stack record index didn't properly reflect the
state it should be in during the operation and the
final fragment returned false to isInBackStack().
This CL adds tests for the new behavior where
the back stack bumping is moved to immediately
prior to executing the operations.
Test: ran fragments cts tests
Change-Id: I887d565d245cd61434963040c20f887a10bf51dc
1 file changed