This repository was archived by the owner on Jul 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
android/canonical/app/src/main/java/com/google/samples/quickstart/canonical Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ class ProfileViewModel : ViewModel() {
39
39
private lateinit var runCollectionRef : CollectionReference
40
40
private lateinit var curAppUser: AppUser
41
41
private var runHistoryListForView: ArrayList <SingleRun > = ArrayList ()
42
- // private var timeHMSString: MutableLiveData<String> = MutableLiveData(DEFAULT_TIME)
43
42
44
43
private fun getUid () : String {
45
44
return curAppUser.uid
@@ -93,14 +92,6 @@ class ProfileViewModel : ViewModel() {
93
92
return millionSeconds.div(4500 )
94
93
}
95
94
96
- // private fun setTimeHMSString() {
97
- // val ms = getTotalTimeMillisecond()
98
- // val hms = ms ?.let{convertMStoStringHMS(ms)} ?: run { DEFAULT_TIME }
99
- // timeHMSString.value = hms
100
- // Log.d(PROFILE_VM_TAG, "setTimeHMSString hms: $hms")
101
- // }
102
-
103
-
104
95
private fun syncAppUserStatistic () {
105
96
runUserDocRef.get()
106
97
.addOnSuccessListener {document ->
@@ -110,7 +101,6 @@ class ProfileViewModel : ViewModel() {
110
101
setTotalTimeMillisecond(document.data!! [KEY_TOTAL_TIME_MS ] as Long )
111
102
setRunHistoryList(document.data!! [KEY_RUN_HISTORY ] as ArrayList <HashMap <String , Any >>)
112
103
setRunHistoryListForView()
113
- // setTimeHMSString()
114
104
}
115
105
.addOnFailureListener {
116
106
Log .w(PROFILE_VM_TAG , " Get doc Failed" )
You can’t perform that action at this time.
0 commit comments