diff --git a/app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveFragment.java b/app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveFragment.java index c7dc8a3..67a6963 100644 --- a/app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveFragment.java +++ b/app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveFragment.java @@ -63,7 +63,7 @@ public class ReceiveFragment extends Fragment { } private void bindListeners(View view) { - ImageView freshAddressImageView = view.findViewById(R.id.fresh_address_imageview); + ImageButton freshAddressImageView = view.findViewById(R.id.fresh_address_imageview); freshAddressImageView.setOnClickListener(view1 -> { mViewModel.getFreshSubaddress(); }); diff --git a/app/src/main/java/net/mynero/wallet/util/UriData.java b/app/src/main/java/net/mynero/wallet/util/UriData.java index 4372346..9bf1f3d 100644 --- a/app/src/main/java/net/mynero/wallet/util/UriData.java +++ b/app/src/main/java/net/mynero/wallet/util/UriData.java @@ -23,9 +23,11 @@ public class UriData { String[] queryParts = queryParams.split("&"); for (String param : queryParts) { String[] paramParts = param.split("="); - String variable = paramParts[0]; - String value = paramParts[1]; - params.put(variable, value); + if(paramParts.length == 2) { + String variable = paramParts[0]; + String value = paramParts[1]; + params.put(variable, value); + } } } boolean valid = Wallet.isAddressValid(finalAddress); diff --git a/app/src/main/res/layout/add_node_bottom_sheet_dialog.xml b/app/src/main/res/layout/add_node_bottom_sheet_dialog.xml index b61560f..dd50d11 100644 --- a/app/src/main/res/layout/add_node_bottom_sheet_dialog.xml +++ b/app/src/main/res/layout/add_node_bottom_sheet_dialog.xml @@ -48,9 +48,8 @@ android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:background="@android:color/transparent" - android:minWidth="24dp" - android:minHeight="24dp" - android:padding="8dp" + android:minWidth="48dp" + android:minHeight="48dp" android:src="@drawable/ic_content_paste_24dp" app:layout_constraintBottom_toBottomOf="@id/address_edittext" app:layout_constraintEnd_toEndOf="parent" @@ -103,9 +102,8 @@ android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:background="@android:color/transparent" - android:minWidth="24dp" - android:minHeight="24dp" - android:padding="8dp" + android:minWidth="48dp" + android:minHeight="48dp" android:src="@drawable/ic_content_paste_24dp" app:layout_constraintBottom_toBottomOf="@id/username_edittext" app:layout_constraintEnd_toEndOf="parent" @@ -134,9 +132,8 @@ android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:background="@android:color/transparent" - android:minWidth="24dp" - android:minHeight="24dp" - android:padding="8dp" + android:minWidth="48dp" + android:minHeight="48dp" android:visibility="gone" android:src="@drawable/ic_content_paste_24dp" app:layout_constraintBottom_toBottomOf="@id/password_edittext" diff --git a/app/src/main/res/layout/edit_node_bottom_sheet_dialog.xml b/app/src/main/res/layout/edit_node_bottom_sheet_dialog.xml index 394addc..b55f3d0 100644 --- a/app/src/main/res/layout/edit_node_bottom_sheet_dialog.xml +++ b/app/src/main/res/layout/edit_node_bottom_sheet_dialog.xml @@ -48,9 +48,8 @@ android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:background="@android:color/transparent" - android:minWidth="24dp" - android:minHeight="24dp" - android:padding="8dp" + android:minWidth="48dp" + android:minHeight="48dp" android:src="@drawable/ic_content_paste_24dp" app:layout_constraintBottom_toBottomOf="@id/address_edittext" app:layout_constraintEnd_toEndOf="parent" @@ -92,9 +91,8 @@ android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:background="@android:color/transparent" - android:minWidth="24dp" - android:minHeight="24dp" - android:padding="8dp" + android:minWidth="48dp" + android:minHeight="48dp" android:src="@drawable/ic_content_paste_24dp" app:layout_constraintBottom_toBottomOf="@id/username_edittext" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/fragment_receive.xml b/app/src/main/res/layout/fragment_receive.xml index ec48939..7c1e184 100644 --- a/app/src/main/res/layout/fragment_receive.xml +++ b/app/src/main/res/layout/fragment_receive.xml @@ -20,11 +20,14 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> -