Search in sources :

Example 1 with SyncFragment

use of com.orgzly.android.ui.fragments.SyncFragment in project orgzly-android by orgzly.

the class MainActivity method addSyncFragment.

private SyncFragment addSyncFragment() {
    if (BuildConfig.LOG_DEBUG)
        LogUtils.d(TAG);
    SyncFragment fragment = (SyncFragment) getSupportFragmentManager().findFragmentByTag(SyncFragment.FRAGMENT_TAG);
    /* If the Fragment is non-null, then it is currently being
         * retained across a configuration change.
         */
    if (fragment == null) {
        fragment = SyncFragment.getInstance();
        getSupportFragmentManager().beginTransaction().replace(R.id.drawer_sync_container, fragment, SyncFragment.FRAGMENT_TAG).commit();
    }
    return fragment;
}
Also used : SyncFragment(com.orgzly.android.ui.fragments.SyncFragment)

Aggregations

SyncFragment (com.orgzly.android.ui.fragments.SyncFragment)1