Skip to content

Commit

Permalink
update last sync label.
Browse files Browse the repository at this point in the history
  • Loading branch information
Santosh Pingle committed Oct 8, 2024
1 parent b4937d6 commit e5b65fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ManualSyncFragment : Fragment() {

private fun observeLastSyncTime() {
mainActivityViewModel.lastSyncTimestampLiveData.observe(viewLifecycleOwner) {
requireView().findViewById<TextView>(R.id.lastSyncTime).text = it
requireView().findViewById<TextView>(R.id.lastSyncTime).text = getString(R.string.last_sync_timestamp,it)
}
}
}
1 change: 1 addition & 0 deletions demo/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<string name="last_sync">Last sync</string>
<string name="syncing">Syncing</string>
<string name="sync">Sync</string>
<string name="last_sync_timestamp">Last Sync: %1$s</string>
<string name="current_status">Current Status: %1$s</string>
<string name="manual_sync">Manual Sync</string>
</resources>

0 comments on commit e5b65fc

Please sign in to comment.