From 2ebb8caaf9e7807898ce1b4715f91f01d4913986 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 17 Feb 2021 10:34:15 -0800 Subject: [PATCH] don't over-scroll At least with my dozens of Known Players I was getting an empty alert. --- .../app/src/main/java/org/eehouse/android/xw4/InviteView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteView.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteView.java index 3714b7fe9..eec807162 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteView.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/InviteView.java @@ -225,7 +225,7 @@ public class InviteView extends ScrollView post( new Runnable() { @Override public void run() { - ImageView iv = (ImageView)findViewById( R.id.qr_view ); + final ImageView iv = (ImageView)findViewById( R.id.qr_view ); iv.setImageBitmap( bitmap ); if ( BuildConfig.NON_RELEASE ) { TextView tv = (TextView)findViewById( R.id.qr_url ); @@ -235,7 +235,7 @@ public class InviteView extends ScrollView post ( new Runnable() { @Override public void run() { - scrollTo( 0, getBottom() ); + scrollTo( 0, iv.getTop() ); } } ); }