The app that I am developing has a Google Map in its home fragment which is inside a navigation drawer. When I press the back button from a fragment opened by the menu in the navigation drawer the app closes and this error occurs:
E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
To load the fragment:
private void loadFragment(Fragment fragment) { FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); transaction.replace(R.id.map, fragment); transaction.addToBackStack(null).commit();}
The code to go back is the following:
@Overridepublic void onBackPressed(){ if (dl.isDrawerOpen(GravityCompat.START)) dl.closeDrawer(GravityCompat.START); else super.onBackPressed(); if (getFragmentManager().getBackStackEntryCount() > 0) { getFragmentManager().popBackStack(null, 0); } else super.onBackPressed();}
any idea on how to solve it?