Focus all apps grid and widgets screen with accessibility when needed

This commit is contained in:
Ensar Sarajčić 2023-07-18 14:21:07 +02:00
parent a4fc9d0b90
commit 65835d4bcb
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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