adapt to latest tooling and fix actionmode
reorder condition for better readability
extract var
migrate the tests to androidTest
improve code
transparent ActionBar
use supportInvalidateOptionsMenu everywhere - otherwise crash on 2.3