forked from shihaam/thijooree
rename activites to recent transfers and transfer history to transaction history
This commit is contained in:
@@ -264,7 +264,7 @@ class HomeActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun applyNavLabelVisibility() {
|
fun applyNavLabelVisibility() {
|
||||||
val showLabels = getSharedPreferences("prefs", MODE_PRIVATE).getBoolean("bottom_nav_show_labels", true)
|
val showLabels = getSharedPreferences("prefs", MODE_PRIVATE).getBoolean("bottom_nav_show_labels", true)
|
||||||
binding.bottomNavigation.labelVisibilityMode =
|
binding.bottomNavigation.labelVisibilityMode =
|
||||||
if (showLabels) NavigationBarView.LABEL_VISIBILITY_LABELED
|
if (showLabels) NavigationBarView.LABEL_VISIBILITY_LABELED
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import sh.sar.basedbank.databinding.ItemDateHeaderBinding
|
|||||||
import sh.sar.basedbank.databinding.ItemLoadingFooterBinding
|
import sh.sar.basedbank.databinding.ItemLoadingFooterBinding
|
||||||
import sh.sar.basedbank.databinding.ItemTransactionBinding
|
import sh.sar.basedbank.databinding.ItemTransactionBinding
|
||||||
|
|
||||||
/** Adapter for Transfer History — date-grouped, shows account name in secondary line. */
|
/** Adapter for Transaction History — date-grouped, shows account name in secondary line. */
|
||||||
class TransactionAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
|
class TransactionAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
|
||||||
|
|
||||||
private sealed class Item {
|
private sealed class Item {
|
||||||
@@ -134,7 +134,7 @@ class TransactionAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
|
|||||||
}
|
}
|
||||||
b.tvDescription.text = trx.description
|
b.tvDescription.text = trx.description
|
||||||
|
|
||||||
// Show account name in secondary line for Transfer History
|
// Show account name in secondary line for Transaction History
|
||||||
b.tvCounterparty.text = trx.accountDisplayName
|
b.tvCounterparty.text = trx.accountDisplayName
|
||||||
b.tvCounterparty.visibility = View.VISIBLE
|
b.tvCounterparty.visibility = View.VISIBLE
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import org.json.JSONObject
|
|||||||
import sh.sar.basedbank.ui.home.TransferReceiptData
|
import sh.sar.basedbank.ui.home.TransferReceiptData
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
/** Persistent (non-cache) store for completed transfer receipts shown in Activities. */
|
/** Persistent (non-cache) store for completed transfer receipts shown in Recent Transfers. */
|
||||||
object ReceiptStore {
|
object ReceiptStore {
|
||||||
|
|
||||||
private const val FILE_NAME = "activities.json"
|
private const val FILE_NAME = "activities.json"
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:fitsSystemWindows="true"
|
android:fitsSystemWindows="true"
|
||||||
app:menu="@menu/bottom_nav_menu" />
|
app:menu="@menu/bottom_nav_menu" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="No activities yet"
|
android:text="No recent transfers"
|
||||||
android:textAppearance="?attr/textAppearanceBodyMedium"
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
||||||
android:textColor="?attr/colorOnSurfaceVariant"
|
android:textColor="?attr/colorOnSurfaceVariant"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
<string name="nav_accounts">އެކައުންޓްތައް</string>
|
<string name="nav_accounts">އެކައުންޓްތައް</string>
|
||||||
<string name="nav_contacts">ކޮންޓެކްޓްތައް</string>
|
<string name="nav_contacts">ކޮންޓެކްޓްތައް</string>
|
||||||
<string name="nav_activities">ހަރަކާތްތައް</string>
|
<string name="nav_activities">ހަރަކާތްތައް</string>
|
||||||
<string name="nav_transfer_history">ޓްރާންސްފަ ތާރީހް</string>
|
<string name="nav_transfer_history">ޓްރާންސެކްޝަން ތާރީހް</string>
|
||||||
<string name="nav_finances">ފައިނޭންސް</string>
|
<string name="nav_finances">ފައިނޭންސް</string>
|
||||||
<string name="nav_card_settings">ކާޑް ސެޓިންގ</string>
|
<string name="nav_card_settings">ކާޑް ސެޓިންގ</string>
|
||||||
<string name="nav_settings">ސެޓިންގ</string>
|
<string name="nav_settings">ސެޓިންގ</string>
|
||||||
|
|||||||
@@ -79,8 +79,8 @@
|
|||||||
<string name="nav_add_account">Add Login</string>
|
<string name="nav_add_account">Add Login</string>
|
||||||
<string name="nav_accounts">Accounts</string>
|
<string name="nav_accounts">Accounts</string>
|
||||||
<string name="nav_contacts">Contacts</string>
|
<string name="nav_contacts">Contacts</string>
|
||||||
<string name="nav_activities">Activities</string>
|
<string name="nav_activities">Recent Transfers</string>
|
||||||
<string name="nav_transfer_history">Transfer History</string>
|
<string name="nav_transfer_history">Transaction History</string>
|
||||||
<string name="nav_finances">Finances</string>
|
<string name="nav_finances">Finances</string>
|
||||||
<string name="nav_card_settings">Card Settings</string>
|
<string name="nav_card_settings">Card Settings</string>
|
||||||
<string name="nav_otp">OTP Codes</string>
|
<string name="nav_otp">OTP Codes</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user