Kaydet (Commit) a5acd33b authored tarafından Thorsten Behrens's avatar Thorsten Behrens Kaydeden (comit) Michael Meeks

sdremote - always replace fragments, to avoid stale content

With Change-Id I7cb1cf29bcae59ef26cf3bf0c2b3dd028eb8f878, this code
gets run on every onCreate, thus adding activities on top of
existing ones. Seems FragmentManager lifetime is a bit decoupled
from Activity

Change-Id: Icc1dc86ef91257ce734ee00fed83e909ddf52dc8
Signed-off-by: 's avatarMichael Meeks <michael.meeks@suse.com>
üst 6644caf9
......@@ -78,8 +78,8 @@ public class PresentationActivity extends SherlockFragmentActivity {
FragmentTransaction fragmentTransaction = fragmentManager
.beginTransaction();
fragmentTransaction.add(R.id.presentation_interceptor,
mPresentationFragment, "fragment_presentation");
fragmentTransaction.replace(R.id.presentation_interceptor,
mPresentationFragment, "fragment_presentation");
fragmentTransaction.commit();
mOuterLayout = (FrameLayout) findViewById(R.id.framelayout);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment