Merge pull request #12 from m2049r/bugfix

don't show Send Button on mainnet (instead of crashing when clicked)
This commit is contained in:
m2049r 2017-08-21 17:31:45 +02:00 committed by GitHub
commit 6c6b47db7d
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);
} }