chore: clean

This commit is contained in:
rebel onion
2025-01-06 08:22:44 -06:00
parent 31a67c8edb
commit f9f9767ecc
106 changed files with 855 additions and 584 deletions

View File

@@ -372,6 +372,7 @@ object CommentsAPI {
}
errorMessage("Failed to login after multiple attempts")
}
private fun errorMessage(reason: String) {
if (commentsEnabled) Logger.log(reason)
if (isOnline && commentsEnabled) snackString(reason)
@@ -410,7 +411,7 @@ object CommentsAPI {
return map
}
private fun requestBuilder(client: OkHttpClient = Injekt.get<NetworkHelper>().client): Requests {
fun requestBuilder(client: OkHttpClient = Injekt.get<NetworkHelper>().client): Requests {
return Requests(
client,
headerBuilder()