Focus all apps grid and widgets screen with accessibility when needed
This commit is contained in:
parent
a4fc9d0b90
commit
65835d4bcb
|
@ -23,6 +23,7 @@ import android.os.Handler
|
|||
import android.provider.Telephony
|
||||
import android.telecom.TelecomManager
|
||||
import android.view.*
|
||||
import android.view.accessibility.AccessibilityNodeInfo
|
||||
import android.view.animation.DecelerateInterpolator
|
||||
import android.widget.PopupMenu
|
||||
import androidx.core.graphics.drawable.toBitmap
|
||||
|
@ -409,6 +410,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
|||
window.navigationBarColor = resources.getColor(R.color.semitransparent_navigation)
|
||||
home_screen_grid.fragmentExpanded()
|
||||
home_screen_grid.hideResizeLines()
|
||||
fragment.performAccessibilityAction(AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS, null)
|
||||
}
|
||||
|
||||
private fun hideFragment(fragment: View) {
|
||||
|
|
|
@ -16,7 +16,6 @@ import android.util.AttributeSet
|
|||
import android.util.Size
|
||||
import android.util.SizeF
|
||||
import android.view.View
|
||||
import android.view.accessibility.AccessibilityEvent
|
||||
import android.widget.RelativeLayout
|
||||
import androidx.core.graphics.drawable.toDrawable
|
||||
import androidx.core.view.ViewCompat
|
||||
|
|
Loading…
Reference in New Issue