Move mUIAttached from Task.java to TaskManager.java
Since TaskManager.java will be reused throughout the activity life cicle, which means for the activity and possible fragments, we need the UI check to be persistent as well