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
public void onPause() {
final FragmentTransaction transaction = this.getFragmentManager().beginTransaction();
for(Fragment fragment : this.mFragments){
transaction.remove(fragment);
try{
final FragmentTransaction transaction = this.getFragmentManager().beginTransaction();
for(Fragment fragment : this.mFragments){
transaction.remove(fragment);
}
transaction.commitAllowingStateLoss();
} catch(IllegalStateException e){
e.printStackTrace();
//do nothing
}
transaction.commit();
Collections.reverse(this.mFragments);
super.onPause();
}