# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1631602720 0 # Node ID 7700c8022af32a0b9b853b8abd54b6d7c21c0203 # Parent 7101b569260146ed7fc1bbd93f1daf7e74e2fee6 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. diff -r 7101b5692601 -r 7700c8022af3 android/DWindows.kt --- 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)