fix sign message ANR
MODIFY
bither-android/src/net/bither/SignMessageAddressListActivity.java
bither-android/src/net/bither/SignMessageAddressListActivity.java
@@ -33,7 +33,6 @@ import java.util.List;
public class SignMessageAddressListActivity extends SwipeRightFragmentActivity {
public static final String SignMgsTypeSelect = "SignMgsTypeSelect";
- public static final String PassWord = "PassWord";
public static final String IsHdAccountHot = "IsHdAccountHot";
public static final String IsDetectBcc = "IsDetectBcc";
public static final String IsSignHash = "IsSignHash";
@@ -67,10 +66,6 @@ public class SignMessageAddressListActivity extends SwipeRightFragmentActivity {
isHot = (boolean) getIntent().getSerializableExtra(IsHdAccountHot);
tvTitle.setText(R.string.sign_message_select_address);
isSignHash = getIntent().getBooleanExtra(IsSignHash, false);
- if (signMessageTypeSelect != SignMessageTypeSelect.Hot) {
- String tempString = getIntent().getStringExtra(PassWord);
- password = tempString.subSequence(0, tempString.length());
- }
initView();
}
@@ -150,9 +145,9 @@ public class SignMessageAddressListActivity extends SwipeRightFragmentActivity {
isLoading = true;
List<HDAccount.HDAccountAddress> address;
if (isHot) {
- address = hdAccount.getHdHotAddresses(page, pathType, password);
+ address = hdAccount.getHdHotAddresses(page, pathType);
} else {
- address = hdAccountCold.getHdColdAddresses(page, pathType, password);
+ address = hdAccountCold.getHdColdAddresses(page, pathType);
}
if (page == 1) {
hdAccountAddresses.clear();

MODIFY
bither-android/src/net/bither/ui/base/dialog/DialogSignHashSelectType.java
bither-android/src/net/bither/ui/base/dialog/DialogSignHashSelectType.java
@@ -17,7 +17,6 @@ import net.bither.ui.base.listener.IDialogPasswordListener;
import static net.bither.SignMessageAddressListActivity.IsHdAccountHot;
import static net.bither.SignMessageAddressListActivity.IsSignHash;
-import static net.bither.SignMessageAddressListActivity.PassWord;
import static net.bither.SignMessageAddressListActivity.SignMgsTypeSelect;
public class DialogSignHashSelectType extends CenterDialog {
@@ -77,7 +76,6 @@ public class DialogSignHashSelectType extends CenterDialog {
public void onPasswordEntered(final SecureCharSequence password) {
Intent intent = new Intent(getContext(), SignMessageAddressListActivity.class);
intent.putExtra(SignMgsTypeSelect, SignMessageTypeSelect.HdReceive);
- intent.putExtra(PassWord, password.toString());
intent.putExtra(IsHdAccountHot, isHot);
intent.putExtra(IsSignHash, true);
getContext().startActivity(intent);
@@ -95,7 +93,6 @@ public class DialogSignHashSelectType extends CenterDialog {
public void onPasswordEntered(final SecureCharSequence password) {
Intent intent = new Intent(getContext(), SignMessageAddressListActivity.class);
intent.putExtra(SignMgsTypeSelect, SignMessageTypeSelect.HdChange);
- intent.putExtra(PassWord, password);
intent.putExtra(IsHdAccountHot, isHot);
intent.putExtra(IsSignHash, true);
getContext().startActivity(intent);

MODIFY
bither-android/src/net/bither/ui/base/dialog/DialogSignMessageSelectType.java
bither-android/src/net/bither/ui/base/dialog/DialogSignMessageSelectType.java
@@ -15,7 +15,6 @@ import net.bither.enums.SignMessageTypeSelect;
import net.bither.ui.base.listener.IDialogPasswordListener;
import static net.bither.SignMessageAddressListActivity.IsHdAccountHot;
-import static net.bither.SignMessageAddressListActivity.PassWord;
import static net.bither.SignMessageAddressListActivity.SignMgsTypeSelect;
/**
@@ -71,7 +70,6 @@ public class DialogSignMessageSelectType extends CenterDialog {
public void onPasswordEntered(final SecureCharSequence password) {
Intent intent = new Intent(getContext(), SignMessageAddressListActivity.class);
intent.putExtra(SignMgsTypeSelect, SignMessageTypeSelect.HdReceive);
- intent.putExtra(PassWord, password.toString());
intent.putExtra(IsHdAccountHot, isHot);
getContext().startActivity(intent);
}
@@ -88,7 +86,6 @@ public class DialogSignMessageSelectType extends CenterDialog {
public void onPasswordEntered(final SecureCharSequence password) {
Intent intent = new Intent(getContext(), SignMessageAddressListActivity.class);
intent.putExtra(SignMgsTypeSelect, SignMessageTypeSelect.HdChange);
- intent.putExtra(PassWord, password);
intent.putExtra(IsHdAccountHot, isHot);
getContext().startActivity(intent);
}

MODIFY
bitherj
bitherj
-Subproject commit 4f43fd531b10ea53488a5ea0eb4b0a590c19c952
+Subproject commit 73da616867f868d126d41ea5f491bd60019a9466

fix sign message ANR