コード例 #1
0
 private void closeFragment(SyncCustomizationFragment fragment) {
   FragmentTransaction transaction = mPreferences.getFragmentManager().beginTransaction();
   transaction.remove(fragment);
   transaction.commit();
   getInstrumentation().waitForIdleSync();
 }
コード例 #2
0
 private SyncCustomizationFragment startSyncCustomizationFragment() {
   mPreferences = startPreferences(SyncCustomizationFragment.class.getName());
   getInstrumentation().waitForIdleSync();
   return (SyncCustomizationFragment) mPreferences.getFragmentForTest();
 }