diff --git a/app/src/main/java/com/tangem/presentation/activity/EmptyWalletActivity.java b/app/src/main/java/com/tangem/presentation/activity/EmptyWalletActivity.java
index dea4ee02d4..6e3e5b204b 100644
--- a/app/src/main/java/com/tangem/presentation/activity/EmptyWalletActivity.java
+++ b/app/src/main/java/com/tangem/presentation/activity/EmptyWalletActivity.java
@@ -27,17 +27,18 @@ import com.tangem.data.network.task.VerifyCardTask;
import com.tangem.presentation.dialog.WaitSecurityDelayDialog;
public class EmptyWalletActivity extends AppCompatActivity implements NfcAdapter.ReaderCallback, CardProtocol.Notifications {
+ public static final String TAG = EmptyWalletActivity.class.getSimpleName();
private static final int REQUEST_CODE_CREATE_NEW_WALLET_ACTIVITY = 2;
private static final int REQUEST_CODE_REQUEST_PIN2 = 3;
private static final int REQUEST_CODE_VERIFY_CARD = 4;
- TangemCard mCard;
- TextView tvCardID, tvIssuer, tvIssuerData, tvBlockchain;
- ProgressBar progressBar;
- ImageView ivBlockchain, ivPIN, ivPIN2orSecurityDelay, ivDeveloperVersion;
+
+ private TangemCard mCard;
+ private TextView tvCardID, tvIssuer, tvIssuerData, tvBlockchain;
+ private ProgressBar progressBar;
+ private ImageView ivBlockchain, ivPIN, ivPIN2orSecurityDelay, ivDeveloperVersion;
private NfcManager mNfcManager;
- private final String logTag = "EmptyWalletActivity";
private boolean lastReadSuccess = true;
private VerifyCardTask verifyCardTask = null;
private int requestPIN2Count = 0;
@@ -156,16 +157,22 @@ public class EmptyWalletActivity extends AppCompatActivity implements NfcAdapter
}
}
+ @Override
+ public void onResume() {
+ super.onResume();
+ mNfcManager.onResume();
+ }
- private void doCreateNewWallet() {
- Intent intent = new Intent(this, CreateNewWalletActivity.class);
+ @Override
+ public void onPause() {
+ super.onPause();
+ mNfcManager.onPause();
+ }
- intent.putExtra("UID", mCard.getUID());
- intent.putExtra("Card", mCard.getAsBundle());
-
-// intent.putExtra("newPIN",mCard.getPIN());
-// intent.putExtra("newPIN2","12345678");
- startActivityForResult(intent, REQUEST_CODE_CREATE_NEW_WALLET_ACTIVITY);
+ @Override
+ public void onStop() {
+ super.onStop();
+ mNfcManager.onStop();
}
@Override
@@ -215,11 +222,11 @@ public class EmptyWalletActivity extends AppCompatActivity implements NfcAdapter
byte UID[] = tag.getId();
String sUID = Util.byteArrayToHexString(UID);
if (!mCard.getUID().equals(sUID)) {
- Log.d(logTag, "Invalid UID: " + sUID);
+ Log.d(TAG, "Invalid UID: " + sUID);
mNfcManager.ignoreTag(isoDep.getTag());
return;
} else {
- Log.v(logTag, "UID: " + sUID);
+ Log.v(TAG, "UID: " + sUID);
}
if (lastReadSuccess) {
@@ -341,21 +348,16 @@ public class EmptyWalletActivity extends AppCompatActivity implements NfcAdapter
}
- @Override
- public void onResume() {
- super.onResume();
- mNfcManager.onResume();
+ private void doCreateNewWallet() {
+ Intent intent = new Intent(this, CreateNewWalletActivity.class);
+
+ intent.putExtra("UID", mCard.getUID());
+ intent.putExtra("Card", mCard.getAsBundle());
+
+// intent.putExtra("newPIN",mCard.getPIN());
+// intent.putExtra("newPIN2","12345678");
+ startActivityForResult(intent, REQUEST_CODE_CREATE_NEW_WALLET_ACTIVITY);
}
- @Override
- public void onPause() {
- super.onPause();
- mNfcManager.onPause();
- }
- @Override
- public void onStop() {
- super.onStop();
- mNfcManager.onStop();
- }
}
diff --git a/app/src/main/res/layout/activity_empty_wallet.xml b/app/src/main/res/layout/activity_empty_wallet.xml
index b5aab69e59..87535e8ea1 100644
--- a/app/src/main/res/layout/activity_empty_wallet.xml
+++ b/app/src/main/res/layout/activity_empty_wallet.xml
@@ -7,8 +7,8 @@
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
- android:padding="0dp"
- tools:context="com.tangem.presentation.activity.EmptyWalletActivity">
+ tools:context="com.tangem.presentation.activity.EmptyWalletActivity"
+ tools:ignore="contentDescription">
+ android:textSize="@dimen/text_size_1_small"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ android:textSize="@dimen/text_size_1_small"/>
+ android:textSize="@dimen/text_size_1_small"
+ android:textStyle="normal|bold"
+ tools:text="12345"/>
+
+ android:textSize="@dimen/text_size_1_small"/>
+ android:textSize="@dimen/text_size_1_small"
+ android:textStyle="normal|bold"
+ tools:text="5555"/>
+
@@ -189,59 +117,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
- android:text=" "
- android:textSize="@dimen/empty_wallet_font_normal"
- android:textStyle="normal|bold"/>
+ android:textSize="@dimen/text_size_1_small"
+ android:textStyle="normal|bold"
+ tools:text="11111"/>
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ android:textSize="@dimen/text_size_small"/>
+
@@ -295,8 +172,8 @@
android:layout_alignParentBottom="true"
android:layout_alignParentStart="false"
android:layout_margin="8dp"
- android:layout_marginRight="4dp"
- android:layout_toLeftOf="@+id/imgPIN2orSecurityDelay"
+ android:layout_marginEnd="4dp"
+ android:layout_toStartOf="@+id/imgPIN2orSecurityDelay"
android:src="@drawable/unlock_pin1"/>
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
index 27459548d7..35edb4972f 100644
--- a/app/src/main/res/values/dimens.xml
+++ b/app/src/main/res/values/dimens.xml
@@ -18,9 +18,9 @@
14dp
140dp
- 24dp
- 14dp
- 12dp
+
+
+
16dp
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 75be753859..af365fce10 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -42,6 +42,7 @@
Amount
(including fee)
mBTC
+ Scan again to verify the card
Your Android device is rooted. Security at risk!
@@ -95,7 +96,6 @@
Swipe down to refresh data
Message!
Error!
- Scan again to verify the card
SEND
If you forget your new PIN you will lose your money forever!
If you use default PIN someone can steal your money!
@@ -154,4 +154,9 @@
Normal
Priority
+
+
+ Wallet hasn\'t been yet created
+ Create Wallet
+
\ No newline at end of file