private void closeFragment(SyncCustomizationFragment fragment) { FragmentTransaction transaction = mPreferences.getFragmentManager().beginTransaction(); transaction.remove(fragment); transaction.commit(); getInstrumentation().waitForIdleSync(); }
private SyncCustomizationFragment startSyncCustomizationFragment() { mPreferences = startPreferences(SyncCustomizationFragment.class.getName()); getInstrumentation().waitForIdleSync(); return (SyncCustomizationFragment) mPreferences.getFragmentForTest(); }