resolve merge conflicts of 3608e08ad8 to master

Bug:34360598
Test: Wrote tests (that fail before this CL and now pass), and ran
./gradlew support-compat:connectedCheck --info --daemon
-Pandroid.testInstrumentationRunnerArguments.class=android.support.v4.app.NotificationCompatTest
Change-Id: I1507a050b25843d3028a28857505f732c3466f9a