diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-03-19 19:18:46 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-03-19 19:18:46 +0000 |
commit | 1c75a77df6ccc1440f6ab15ca6a557137854b05b (patch) | |
tree | b222b930794fb0929c9ac579c4b7bbff810d0a40 /src | |
parent | a7c28940973ceba05074c20045476b26a5c8f39c (diff) | |
parent | 913a7da58c9cc524d1f15c848ff5a3306bcce6f1 (diff) | |
download | android_packages_apps_Trebuchet-1c75a77df6ccc1440f6ab15ca6a557137854b05b.tar.gz android_packages_apps_Trebuchet-1c75a77df6ccc1440f6ab15ca6a557137854b05b.tar.bz2 android_packages_apps_Trebuchet-1c75a77df6ccc1440f6ab15ca6a557137854b05b.zip |
Merge "Accessibility improvement around blue user education card" into ub-launcher3-master
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/views/BottomUserEducationView.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher3/views/BottomUserEducationView.java b/src/com/android/launcher3/views/BottomUserEducationView.java index ba78cf684..a291fc605 100644 --- a/src/com/android/launcher3/views/BottomUserEducationView.java +++ b/src/com/android/launcher3/views/BottomUserEducationView.java @@ -22,11 +22,15 @@ import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.TouchDelegate; import android.view.View; +import android.view.accessibility.AccessibilityEvent; + import com.android.launcher3.Insettable; import com.android.launcher3.Launcher; import com.android.launcher3.R; import com.android.launcher3.anim.Interpolators; +import static com.android.launcher3.compat.AccessibilityManagerCompat.sendCustomAccessibilityEvent; + public class BottomUserEducationView extends AbstractSlideInView implements Insettable { private static final String KEY_SHOWED_BOTTOM_USER_EDUCATION = "showed_bottom_user_education"; @@ -90,6 +94,10 @@ public class BottomUserEducationView extends AbstractSlideInView implements Inse // close action. mLauncher.getSharedPrefs().edit() .putBoolean(KEY_SHOWED_BOTTOM_USER_EDUCATION, true).apply(); + sendCustomAccessibilityEvent( + BottomUserEducationView.this, + AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED, + getContext().getString(R.string.bottom_work_tab_user_education_closed)); } } |