diff --git a/app/src/main/java/com/m2049r/xmrwallet/fragment/home/HomeFragment.java b/app/src/main/java/com/m2049r/xmrwallet/fragment/home/HomeFragment.java
index cc322bb..50654f1 100644
--- a/app/src/main/java/com/m2049r/xmrwallet/fragment/home/HomeFragment.java
+++ b/app/src/main/java/com/m2049r/xmrwallet/fragment/home/HomeFragment.java
@@ -13,6 +13,7 @@ import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
+import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentManager;
@@ -85,6 +86,7 @@ public class HomeFragment extends Fragment implements TransactionInfoAdapter.TxI
RecyclerView txHistoryRecyclerView = view.findViewById(R.id.transaction_history_recyclerview);
TextView unlockedBalanceTextView = view.findViewById(R.id.balance_unlocked_textview);
TextView lockedBalanceTextView = view.findViewById(R.id.balance_locked_textview);
+ ConstraintLayout noHistoryLayout = view.findViewById(R.id.no_history_layout);
BalanceService balanceService = BalanceService.getInstance();
HistoryService historyService = HistoryService.getInstance();
@@ -133,6 +135,7 @@ public class HomeFragment extends Fragment implements TransactionInfoAdapter.TxI
historyService.history.observe(getViewLifecycleOwner(), history -> {
if (history.isEmpty()) {
txHistoryRecyclerView.setVisibility(View.GONE);
+ noHistoryLayout.setVisibility(View.VISIBLE);
} else {
Collections.sort(history);
if (history.size() > 100) {
@@ -141,6 +144,7 @@ public class HomeFragment extends Fragment implements TransactionInfoAdapter.TxI
adapter.submitList(history);
}
txHistoryRecyclerView.setVisibility(View.VISIBLE);
+ noHistoryLayout.setVisibility(View.GONE);
}
});
}
diff --git a/app/src/main/res/drawable/xmrchan_png.png b/app/src/main/res/drawable/xmrchan_png.png
new file mode 100644
index 0000000..6dd759c
Binary files /dev/null and b/app/src/main/res/drawable/xmrchan_png.png differ
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 57dae7c..ee8420b 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -58,6 +58,34 @@
app:layout_constraintTop_toBottomOf="@id/balance_locked_textview"
app:layout_constraintVertical_bias="0.0" />
+
+
+
+
+
127.0.0.1
9050
Invalid IP address
+ No history!\nGet some Monero in here!