Search in sources :

Example 1 with MainFragmentUI

use of com.lingtuan.firefly.ui.MainFragmentUI in project SmartMesh_Android by SmartMeshFoundation.

the class BaseActivity method finishTempActivity.

public void finishTempActivity() {
    if (tempActivitys != null && !tempActivitys.isEmpty()) {
        for (int i = 0; i < tempActivitys.size(); i++) {
            Activity act = tempActivitys.get(i);
            if (!act.isFinishing() && !(act instanceof MainFragmentUI)) {
                act.finish();
                tempActivitys.remove(i);
                i--;
            }
        }
    }
}
Also used : SplashActivity(com.lingtuan.firefly.ui.SplashActivity) AppCompatActivity(android.support.v7.app.AppCompatActivity) Activity(android.app.Activity) MainFragmentUI(com.lingtuan.firefly.ui.MainFragmentUI)

Aggregations

Activity (android.app.Activity)1 AppCompatActivity (android.support.v7.app.AppCompatActivity)1 MainFragmentUI (com.lingtuan.firefly.ui.MainFragmentUI)1 SplashActivity (com.lingtuan.firefly.ui.SplashActivity)1