|
@ -217,11 +217,11 @@ public class TransactionPasswordPromptActivity extends BaseActivity implements S |
|
|
String timeRemaining = String.format(Locale.US, "%02d", minutes) |
|
|
String timeRemaining = String.format(Locale.US, "%02d", minutes) |
|
|
+ ":" + String.format(Locale.US, "%02d", seconds); |
|
|
+ ":" + String.format(Locale.US, "%02d", seconds); |
|
|
|
|
|
|
|
|
Spannable tryInText = new SpannableString("Try again in "); |
|
|
|
|
|
|
|
|
Spannable tryInText = new SpannableString(getString(R.string.resend_code_text)); |
|
|
tryInText.setSpan(new ForegroundColorSpan(grayColor), 0, tryInText.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); |
|
|
tryInText.setSpan(new ForegroundColorSpan(grayColor), 0, tryInText.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); |
|
|
resendRequest.setText(tryInText); |
|
|
resendRequest.setText(tryInText); |
|
|
|
|
|
|
|
|
Spannable timeText = new SpannableString(timeRemaining); |
|
|
|
|
|
|
|
|
Spannable timeText = new SpannableString(" "+timeRemaining); |
|
|
timeText.setSpan(new ForegroundColorSpan(redColor), 0, timeText.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); |
|
|
timeText.setSpan(new ForegroundColorSpan(redColor), 0, timeText.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); |
|
|
|
|
|
|
|
|
resendRequest.append(timeText); |
|
|
resendRequest.append(timeText); |
|
@ -292,20 +292,6 @@ public class TransactionPasswordPromptActivity extends BaseActivity implements S |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String getDecryptedDataFromIntent(Intent intent) { |
|
|
|
|
|
if (intent == null) |
|
|
|
|
|
return ""; |
|
|
|
|
|
|
|
|
|
|
|
String cipherData = intent.getStringExtra(TransKeyActivity.mTK_PARAM_CIPHER_DATA); |
|
|
|
|
|
|
|
|
|
|
|
byte[] secureKey = intent.getByteArrayExtra(TransKeyActivity.mTK_PARAM_SECURE_KEY); |
|
|
|
|
|
int iRealDataLength = intent.getIntExtra(TransKeyActivity.mTK_PARAM_DATA_LENGTH, 0); |
|
|
|
|
|
Log.d("EncryptedData", cipherData); |
|
|
|
|
|
return EncryptionManager.decryptCipherText(cipherData, secureKey, iRealDataLength); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void input(int i) { |
|
|
public void input(int i) { |
|
|
|
|
|
|
|
|