Fix AppCompat action bar theming.

Use themed context to inflate the action bar when AppCompat is used.
Also fix minor issues exposed as a result.

 - Set project callback when LayoutInflater is created by
 - Remove duplication of code to get base context from context wrapper.

Change-Id: I379ba2ba71c0ef547460987c3aa5db521c7de967
7 files changed