I have canged the call from transaction.commit for

transaction/commitAllowingStateLoss() in
FeatureListFragmetn.onPause()

This has seemed to fix the issues with the fragments dissapearing after
the ringtone activity returns.

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-05-23 01:00:05 -04:00
parent 1ad1eb8b8c
commit e552a77c71

View File

@@ -89,11 +89,17 @@ public class FeatureListFragment extends Fragment {
*/ */
@Override @Override
public void onPause() { public void onPause() {
final FragmentTransaction transaction = this.getFragmentManager().beginTransaction(); try{
for(Fragment fragment : this.mFragments){ final FragmentTransaction transaction = this.getFragmentManager().beginTransaction();
transaction.remove(fragment); for(Fragment fragment : this.mFragments){
transaction.remove(fragment);
}
transaction.commitAllowingStateLoss();
} catch(IllegalStateException e){
e.printStackTrace();
//do nothing
} }
transaction.commit();
Collections.reverse(this.mFragments); Collections.reverse(this.mFragments);
super.onPause(); super.onPause();
} }