changeset 2651:7700c8022af3

Android: Unset ID is -1 on Android not 0, so generate a View ID if < 1 not just 0. This fixes HandyFTP bombing with error about ConstraintLayout children needing IDs.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 14 Sep 2021 06:58:40 +0000
parents 7101b5692601
children 42151fd096d4
files android/DWindows.kt
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/android/DWindows.kt	Tue Sep 14 05:53:51 2021 +0000
+++ b/android/DWindows.kt	Tue Sep 14 06:58:40 2021 +0000
@@ -1993,7 +1993,7 @@
 
                 // Place the top/left item
                 if(topleft != null) {
-                    if(topleft.id == 0) {
+                    if(topleft.id < 1) {
                         topleft.id = View.generateViewId()
                     }
                     splitbar!!.addView(topleft)
@@ -2033,7 +2033,7 @@
 
                 // Place the bottom/right item
                 if(bottomright != null) {
-                    if (bottomright.id == 0) {
+                    if (bottomright.id < 1) {
                         bottomright.id = View.generateViewId()
                     }
                     splitbar!!.addView(bottomright)