Introduce a DestroyableActivity for UI result handlers

This commit is contained in:
Torsten Grote
2016-09-08 11:25:02 -03:00
parent 49e9ee2b6d
commit af5b246d7b
7 changed files with 13 additions and 13 deletions

View File

@@ -2,13 +2,14 @@ package org.briarproject.android.controller.handler;
import android.support.annotation.UiThread;
import org.briarproject.android.DestroyableActivity;
import org.briarproject.android.fragment.BaseFragment.BaseFragmentListener;
public abstract class UiResultHandler<R> implements ResultHandler<R> {
private final BaseFragmentListener listener;
private final DestroyableActivity listener;
protected UiResultHandler(BaseFragmentListener listener) {
protected UiResultHandler(DestroyableActivity listener) {
this.listener = listener;
}