Small layout improvement

This commit is contained in:
M66B 2019-04-01 11:03:27 +02:00
parent 30272777ad
commit c499ff8f0a
1 changed files with 6 additions and 2 deletions

View File

@ -34,6 +34,7 @@ import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.os.ParcelFileDescriptor; import android.os.ParcelFileDescriptor;
import android.text.TextUtils; import android.text.TextUtils;
import android.view.Gravity;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
@ -794,8 +795,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
@Override @Override
protected void onExecuted(Bundle args, UpdateInfo info) { protected void onExecuted(Bundle args, UpdateInfo info) {
if (info == null) { if (info == null) {
if (args.getBoolean("always")) if (args.getBoolean("always")) {
Toast.makeText(ActivityView.this, BuildConfig.VERSION_NAME, Toast.LENGTH_LONG).show(); Toast toast = Toast.makeText(ActivityView.this, BuildConfig.VERSION_NAME, Toast.LENGTH_LONG);
toast.setGravity(Gravity.CENTER, 0, 0);
toast.show();
}
return; return;
} }