Android Auto does not want notificaitons that have actions to be expandable. Rather, they should always be in their expanded state. The only exception to this are grouped notifications, which should be collasped by default. They also can still be expanded. Modify the code to allow this to be changed. In addition, modify some of the animation so that the dividers so not flash when the notification group is expanding. There is also a change to bring the header of the notification to the front so that the child notifications do not overlap it. This is because in Auto, the app name and icon are not displayed in the header, but the expand button is still there. Test: booted on phone and Android Auto headunit. Bug: 33210494 Change-Id: I0a121a0eaee6159ccea9961721abe92603484a17
24 lines
1003 B
XML
24 lines
1003 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2015 The Android Open Source Project
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License
|
|
-->
|
|
|
|
<com.android.systemui.statusbar.AlphaOptimizedView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/notification_more_divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/notification_divider_height"
|
|
android:background="@color/notification_divider_color" />
|