app/internal/window: [Android] disable platform focus highlight

Gio apps use a single Android View for the entire UI, rendering the platform
focus highlight unsuitable.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-07-22 20:04:26 +02:00
parent 6ab43aba3e
commit 86c3fb2f0b
+3
View File
@@ -60,6 +60,9 @@ public final class GioView extends SurfaceView implements Choreographer.FrameCal
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
scrollXScale = conf.getScaledHorizontalScrollFactor();
scrollYScale = conf.getScaledVerticalScrollFactor();
// The platform focus highlight is not aware of Gio's widgets.
setDefaultFocusHighlightEnabled(false);
} else {
float listItemHeight = 48; // dp
float px = TypedValue.applyDimension(