Search in sources :

Example 1 with CommitStore

use of com.github.pockethub.android.core.commit.CommitStore in project PocketHub by pockethub.

the class PocketHubModule method commitStore.

@Provides
CommitStore commitStore(Context context) {
    CommitStore store = commits != null ? commits.get() : null;
    if (store == null) {
        store = new CommitStore(context);
        commits = new WeakReference<>(store);
    }
    return store;
}
Also used : CommitStore(com.github.pockethub.android.core.commit.CommitStore) Provides(com.google.inject.Provides)

Aggregations

CommitStore (com.github.pockethub.android.core.commit.CommitStore)1 Provides (com.google.inject.Provides)1