don't over-scroll

At least with my dozens of Known Players I was getting an empty alert.
This commit is contained in:
Eric House 2021-02-17 10:34:15 -08:00
parent ad3be6732a
commit 2ebb8caaf9

View file

@ -225,7 +225,7 @@ public class InviteView extends ScrollView
post( new Runnable() { post( new Runnable() {
@Override @Override
public void run() { public void run() {
ImageView iv = (ImageView)findViewById( R.id.qr_view ); final ImageView iv = (ImageView)findViewById( R.id.qr_view );
iv.setImageBitmap( bitmap ); iv.setImageBitmap( bitmap );
if ( BuildConfig.NON_RELEASE ) { if ( BuildConfig.NON_RELEASE ) {
TextView tv = (TextView)findViewById( R.id.qr_url ); TextView tv = (TextView)findViewById( R.id.qr_url );
@ -235,7 +235,7 @@ public class InviteView extends ScrollView
post ( new Runnable() { post ( new Runnable() {
@Override @Override
public void run() { public void run() {
scrollTo( 0, getBottom() ); scrollTo( 0, iv.getTop() );
} }
} ); } );
} }