diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-09-08 19:55:17 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2014-09-10 14:58:50 +0200 |
commit | b1cd3c1945499721d7d1ce57bdda67695ffe936b (patch) | |
tree | 06edfab1d3248bd02ab53bc45702c5979e196ab5 /packages/SystemUI/res/layout | |
parent | c90f95c79ddd930c3fba13352f15ce7666eca402 (diff) | |
download | frameworks_base-b1cd3c1945499721d7d1ce57bdda67695ffe936b.zip frameworks_base-b1cd3c1945499721d7d1ce57bdda67695ffe936b.tar.gz frameworks_base-b1cd3c1945499721d7d1ce57bdda67695ffe936b.tar.bz2 |
Inflate guts only when needed
This saves us a ton of views.
Bug: 17346296
Change-Id: I3eafd6703d19704dc8b108c1034266f38cf77f7b
Diffstat (limited to 'packages/SystemUI/res/layout')
-rw-r--r-- | packages/SystemUI/res/layout/status_bar_notification_row.xml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/SystemUI/res/layout/status_bar_notification_row.xml b/packages/SystemUI/res/layout/status_bar_notification_row.xml index 6b829e5..e9d86d6 100644 --- a/packages/SystemUI/res/layout/status_bar_notification_row.xml +++ b/packages/SystemUI/res/layout/status_bar_notification_row.xml @@ -52,9 +52,10 @@ android:paddingStart="8dp" /> - <include - layout="@layout/notification_guts" - android:id="@+id/notification_guts" + <ViewStub + android:layout="@layout/notification_guts" + android:id="@+id/notification_guts_stub" + android:inflatedId="@+id/notification_guts" android:layout_width="match_parent" android:layout_height="match_parent" /> |