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

@@ -0,0 +1,12 @@
package org.briarproject.android;
import android.support.annotation.UiThread;
public interface DestroyableActivity {
void runOnUiThread(Runnable runnable);
@UiThread
boolean hasBeenDestroyed();
}