diff options
author | Ihab Awad <ihab@google.com> | 2014-12-15 10:42:46 -0800 |
---|---|---|
committer | Ihab Awad <ihab@google.com> | 2014-12-15 13:52:22 -0800 |
commit | 0bbd606a3d1da11a38fdc127f4067b06f71174f8 (patch) | |
tree | db43f70a5736570c9b424eac3728cdffe26aeb69 /src | |
parent | 0458b213bfdebe7a4c7c263e6e51b072be4498c0 (diff) |
Improve Talkback for "Speed dial" user interface
Bug: 18738114
Change-Id: I3148d6c78561bf369d4ddbab09bf2fb9c7a7966b
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/list/SpeedDialFragment.java | 8 | ||||
-rw-r--r-- | src/com/android/dialer/util/DialerUtils.java | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/com/android/dialer/list/SpeedDialFragment.java b/src/com/android/dialer/list/SpeedDialFragment.java index 2ca16b701..a42031677 100644 --- a/src/com/android/dialer/list/SpeedDialFragment.java +++ b/src/com/android/dialer/list/SpeedDialFragment.java @@ -235,14 +235,16 @@ public class SpeedDialFragment extends Fragment implements OnItemClickListener, /* package */ void setEmptyViewVisibility(final boolean visible) { final int previousVisibility = mEmptyView.getVisibility(); - final int newVisibility = visible ? View.VISIBLE : View.GONE; + final int emptyViewVisibility = visible ? View.VISIBLE : View.GONE; + final int listViewVisibility = visible ? View.GONE : View.VISIBLE; - if (previousVisibility != newVisibility) { + if (previousVisibility != emptyViewVisibility) { final RelativeLayout.LayoutParams params = (LayoutParams) mContactTileFrame .getLayoutParams(); params.height = visible ? LayoutParams.WRAP_CONTENT : LayoutParams.MATCH_PARENT; mContactTileFrame.setLayoutParams(params); - mEmptyView.setVisibility(newVisibility); + mEmptyView.setVisibility(emptyViewVisibility); + mListView.setVisibility(listViewVisibility); } } diff --git a/src/com/android/dialer/util/DialerUtils.java b/src/com/android/dialer/util/DialerUtils.java index 153f762e7..d59deb4ef 100644 --- a/src/com/android/dialer/util/DialerUtils.java +++ b/src/com/android/dialer/util/DialerUtils.java @@ -125,7 +125,7 @@ public class DialerUtils { (ImageView) emptyListView.findViewById(R.id.emptyListViewImage); emptyListViewImage.setImageDrawable(res.getDrawable(imageResId)); - emptyListViewImage.setContentDescription(res.getString(strResId)); + emptyListViewImage.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO); TextView emptyListViewMessage = (TextView) emptyListView.findViewById(R.id.emptyListViewMessage); |