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