OSDN Git Service

Limit displayable rows in BluetoothDevicesSlice
authorYanting Yang <yantingyang@google.com>
Thu, 20 Dec 2018 14:23:00 +0000 (22:23 +0800)
committerYanting Yang <yantingyang@google.com>
Fri, 21 Dec 2018 09:29:23 +0000 (17:29 +0800)
commit0fc817bd1b2849b66367b48025da766d292d7993
tree3cb04986b1cf5065cd9ac4eea186510d6b8c3b2a
parent040124cca25d7f7ec829d3454a1eb5b1b5a1d80c
Limit displayable rows in BluetoothDevicesSlice

The maximum displayable row count in current design is 3.
i.e., There are 1 header and 3 rows in a Slice when the number of
Bluetooth device exceeds 3.

Change-Id: Ie585617da0665dde4cbe1ab60a2693e3e1199c27
Fixes: 121308955
Bug: 114807655
Test: visual, robotests
src/com/android/settings/homepage/contextualcards/slices/BluetoothDevicesSlice.java
tests/robotests/src/com/android/settings/homepage/contextualcards/slices/BluetoothDevicesSliceTest.java