Skip to content
Snippets Groups Projects
Commit 402738f7 authored by LuK1337's avatar LuK1337 Committed by Dhina17
Browse files

Set lower hotspotY for handwriting icon

On device with density forced to 1.6, hotspotY and bitmap height are
equal, which triggers the following exception:

java.lang.IllegalArgumentException: y hotspot lies outside of the bitmap area

Test: Boot up with display density 1.6, notice that PointerIcon
      exception is gone.
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/7368
Change-Id: Ifca973fe30f25c0bc8102562a2c84641fea62f3e
parent b16ff968
No related branches found
No related tags found
No related merge requests found
......@@ -2,4 +2,4 @@
<pointer-icon xmlns:android="http://schemas.android.com/apk/res/android"
android:bitmap="@drawable/pointer_handwriting"
android:hotSpotX="8.25dp"
android:hotSpotY="23.75dp" />
\ No newline at end of file
android:hotSpotY="23.50dp" />
\ No newline at end of file
......@@ -2,4 +2,4 @@
<pointer-icon xmlns:android="http://schemas.android.com/apk/res/android"
android:bitmap="@drawable/pointer_handwriting_vector"
android:hotSpotX="8.25dp"
android:hotSpotY="23.75dp" />
\ No newline at end of file
android:hotSpotY="23.50dp" />
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment