Commit ad002ada authored by Alexander Ivanov's avatar Alexander Ivanov

Force close all activities before kill the app. Fixes #79.

parent 1c296aec
...@@ -38,7 +38,7 @@ import com.xabber.androiddev.R; ...@@ -38,7 +38,7 @@ import com.xabber.androiddev.R;
* @author alexander.ivanov * @author alexander.ivanov
* *
*/ */
public class ActivityManager { public class ActivityManager implements OnUnloadListener {
private static final String EXTRA_TASK_INDEX = "com.xabber.android.data.ActivityManager.EXTRA_TASK_INDEX"; private static final String EXTRA_TASK_INDEX = "com.xabber.android.data.ActivityManager.EXTRA_TASK_INDEX";
...@@ -314,4 +314,9 @@ public class ActivityManager { ...@@ -314,4 +314,9 @@ public class ActivityManager {
taskIndexes.put(activity, index); taskIndexes.put(activity, index);
} }
@Override
public void onUnload() {
clearStack(true);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment