MainActivity*: Improve self-update log messages

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-11-21 19:05:02 +05:30
parent 63460f8629
commit 227bc07062
2 changed files with 4 additions and 3 deletions

View File

@@ -159,7 +159,7 @@ class MainActivity : AppCompatActivity() {
if (it != null) {
showUpdatesSheet(it)
} else {
Log.i("No self-update available")
Log.i("No Aurora Store update available")
}
}
}

View File

@@ -25,6 +25,7 @@ class MainViewModel : ViewModel() {
val selfUpdateAvailable = _selfUpdateAvailable.asSharedFlow()
fun checkSelfUpdate(context: Context) {
Log.i(TAG, "Checking for Aurora Store updates")
viewModelScope.launch(Dispatchers.IO) {
try {
val gson: Gson =
@@ -48,8 +49,8 @@ class MainViewModel : ViewModel() {
}
} catch (exception: Exception) {
_selfUpdateAvailable.emit(null)
Log.d(TAG, "Failed to check self-update", exception)
Log.d(TAG, "Failed to check Aurora Store updates", exception)
}
}
}
}
}