don't show Send Button on mainnet (instead of crashing when clicked)

This commit is contained in:
m2049r 2017-08-21 10:14:19 +02:00
parent d44067e952
commit 9b3086ff2e
1 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ import com.m2049r.xmrwallet.layout.TransactionInfoAdapter;
import com.m2049r.xmrwallet.model.TransactionInfo; import com.m2049r.xmrwallet.model.TransactionInfo;
import com.m2049r.xmrwallet.model.Transfer; import com.m2049r.xmrwallet.model.Transfer;
import com.m2049r.xmrwallet.model.Wallet; import com.m2049r.xmrwallet.model.Wallet;
import com.m2049r.xmrwallet.model.WalletManager;
import java.text.NumberFormat; import java.text.NumberFormat;
import java.util.List; import java.util.List;
@ -117,7 +118,7 @@ public class WalletFragment extends Fragment implements TransactionInfoAdapter.O
} }
public void onSynced() { public void onSynced() {
if (!activityCallback.isWatchOnly()) { if (!activityCallback.isWatchOnly() && WalletManager.getInstance().isTestNet()) {
bSend.setVisibility(View.VISIBLE); bSend.setVisibility(View.VISIBLE);
bSend.setEnabled(true); bSend.setEnabled(true);
} }