OSDN Git Service

Add c2c and chat support when there is eligible account.
authorFan Zhang <zhfan@google.com>
Wed, 20 Apr 2016 23:20:17 +0000 (16:20 -0700)
committerFan Zhang <zhfan@google.com>
Wed, 27 Apr 2016 16:06:17 +0000 (09:06 -0700)
commita9fa0059b268f7090f375b481990b89fc84bbb5e
treec0fa5036fed6e5dbb54ed7b79358525faf368dc5
parent185bfdf3a57beb1e22e734a1095dacfb8307bf94
Add c2c and chat support when there is eligible account.

Bug: 28141203
Bug: 28316618
Bug: 28316343

- Replaced hardcoded fragment layout with a RecyclerView. The old layout
  was essentially building a list manually.
- Tweaked layout to look better.
- Hide escalation cards when there is no account. Show cards when
  there is at least 1 account.
- Request an intent to start specified support type when card is
  clicked.
- Monitor account changes so we can hide/show escalation cards when
  add/remove account.

Change-Id: Ie48158b85ade1363a41817cc88b1193e0aef87ae
15 files changed:
res/drawable/ic_call_24dp.xml [new file with mode: 0644]
res/drawable/ic_chat_24dp.xml [new file with mode: 0644]
res/drawable/ic_mail_24dp.xml [new file with mode: 0644]
res/layout/support_escalation_card.xml
res/layout/support_fragment.xml
res/layout/support_item_subtitle.xml [new file with mode: 0644]
res/layout/support_item_title.xml [new file with mode: 0644]
res/values/strings.xml
res/values/styles.xml
src/com/android/settings/dashboard/DashboardContainerFragment.java
src/com/android/settings/dashboard/SupportFragment.java
src/com/android/settings/dashboard/SupportItemAdapter.java [new file with mode: 0644]
src/com/android/settings/overlay/FeatureFactory.java
src/com/android/settings/overlay/FeatureFactoryImpl.java
src/com/android/settings/overlay/SupportFeatureProvider.java