diff --git a/app/src/main/java/cy/agorise/crystalwallet/activities/BackupSeedActivity.java b/app/src/main/java/cy/agorise/crystalwallet/activities/BackupSeedActivity.java index 31cc6bb..f293c24 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/activities/BackupSeedActivity.java +++ b/app/src/main/java/cy/agorise/crystalwallet/activities/BackupSeedActivity.java @@ -11,6 +11,7 @@ import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; +import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; @@ -76,7 +77,10 @@ public class BackupSeedActivity extends AppCompatActivity { Bundle b = getIntent().getExtras(); boolean newAccount = b.getBoolean("newAccount"); if(newAccount ){ - btnOk.setVisibility(View.INVISIBLE); + ViewGroup layout = (ViewGroup) btnOk.getParent(); + if(null!=layout) //for safety only as you are doing onClick + layout.removeView(btnOk); + //btnOk.setVisibility(View.INVISIBLE); } long seedId = getIntent().getLongExtra("SEED_ID",-1); diff --git a/app/src/main/res/layout/backup_seed.xml b/app/src/main/res/layout/backup_seed.xml index b45b770..48bfe86 100644 --- a/app/src/main/res/layout/backup_seed.xml +++ b/app/src/main/res/layout/backup_seed.xml @@ -60,40 +60,39 @@ android:textColor="@color/black" android:textSize="14dp" /> -