fix scroll bug

This commit is contained in:
2026-05-15 10:12:09 +05:00
parent 6779b6f3b7
commit c9ec43de04
8 changed files with 232 additions and 52 deletions
@@ -180,8 +180,9 @@ class MibLoginFlow(private val prefs: android.content.SharedPreferences) {
.add("data", encrypted)
.build()
val response = post(formBody)
val result = MibCrypto.decrypt(response, session.sessionKey)
return result
// Server returns plain JSON (not encrypted) for error responses (e.g. expired session)
if (response.trimStart().startsWith("{")) return JSONObject(response)
return MibCrypto.decrypt(response, session.sessionKey)
}
private fun baseData(session: MibSession, routePath: String): JSONObject = JSONObject().apply {