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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user