Added preconditions for ActionBarACtivity