diff options
author | Ta-wei Yen <twyen@google.com> | 2015-10-27 16:09:09 -0700 |
---|---|---|
committer | Ta-wei Yen <twyen@google.com> | 2015-11-03 18:51:17 -0800 |
commit | e3cae63fc19a431d902fb8ae50eab732e735b2a0 (patch) | |
tree | 7982e43755f75320412511cf91ca4715cfb05d54 /src/com/android/dialer/DialtactsActivity.java | |
parent | 7d048b14177813c9c2b857c67d69698af466a5c7 (diff) |
DiatactsActivity title indicate dialpad status, removed excessive "showing item"
messages.
+ DiatactsActivity set its' title to "Phone Dialpad" or just "Phone", so user
using Talkback can know the state of the activity when it is launched
+ SpeedDialFragment and SearchFragment no longer send accessibility events when
its' content is changed.
+ Add AccessibilityDelegate ContentChangedFilter to filter out
TYPE_WINDOW_CONTENT_CHANGED event for View.
Bug:25190037
Change-Id: If1fa34cc9a5d24dec3fe261da9c071bb5388ec58
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 9105e6f5a..dabe590ad 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -48,7 +48,6 @@ import android.view.MenuItem; import android.view.MotionEvent; import android.view.View; import android.view.View.OnDragListener; -import android.view.View.OnTouchListener; import android.view.ViewTreeObserver; import android.view.animation.Animation; import android.view.animation.AnimationUtils; @@ -83,16 +82,14 @@ import com.android.dialer.list.SearchFragment; import com.android.dialer.list.SmartDialSearchFragment; import com.android.dialer.list.SpeedDialFragment; import com.android.dialer.settings.DialerSettingsActivity; +import com.android.dialer.util.DialerUtils; import com.android.dialer.util.IntentUtil; -import com.android.dialer.util.TelecomUtil; import com.android.dialer.util.IntentUtil.CallIntentBuilder; -import com.android.dialer.util.DialerUtils; +import com.android.dialer.util.TelecomUtil; import com.android.dialer.widget.ActionBarController; import com.android.dialer.widget.SearchEditTextLayout; -import com.android.dialer.widget.SearchEditTextLayout.Callback; import com.android.dialerbind.DatabaseHelperManager; import com.android.dialerbind.ObjectFactory; -import com.android.incallui.Call.LogState; import com.android.phone.common.animation.AnimUtils; import com.android.phone.common.animation.AnimationListenerAdapter; @@ -756,6 +753,9 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mActionBarController.onDialpadUp(); mListsFragment.getView().animate().alpha(0).withLayer(); + + //adjust the title, so the user will know where we're at when the activity start/resumes. + setTitle(R.string.launcherDialpadActivityLabel); } /** @@ -808,6 +808,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O exitSearchUi(); } } + //reset the title to normal. + setTitle(R.string.launcherActivityLabel); } /** |