Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
34c01870
Commit
34c01870
authored
Oct 03, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update RoomListPresenter.kt
parent
1967dcde
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
RoomListPresenter.kt
...ocket/android/fragment/chatroom/list/RoomListPresenter.kt
+0
-11
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/list/RoomListPresenter.kt
View file @
34c01870
...
@@ -2,7 +2,6 @@ package chat.rocket.android.fragment.chatroom.list
...
@@ -2,7 +2,6 @@ package chat.rocket.android.fragment.chatroom.list
import
android.content.Context
import
android.content.Context
import
android.os.Handler
import
android.os.Handler
import
android.util.Log
import
chat.rocket.android.R
import
chat.rocket.android.R
import
chat.rocket.android.api.rest.RestApiHelper
import
chat.rocket.android.api.rest.RestApiHelper
import
chat.rocket.android.helper.OkHttpHelper
import
chat.rocket.android.helper.OkHttpHelper
...
@@ -223,16 +222,6 @@ class RoomListPresenter(val context: Context, val view: RoomListContract.View) :
...
@@ -223,16 +222,6 @@ class RoomListPresenter(val context: Context, val view: RoomListContract.View) :
private
fun
handleFilesJson
(
json
:
String
,
hostname
:
String
)
{
private
fun
handleFilesJson
(
json
:
String
,
hostname
:
String
)
{
try
{
try
{
// val maxLogSize = 1000
// val stringLength = json.length
// for (i in 0..stringLength / maxLogSize) {
// val start = i * maxLogSize
// var end = (i + 1) * maxLogSize
// end = if (end >json.length) json.length else end
// Log.v("TAG", json.substring(start, end))
// }
val
jsonObject
=
JSONObject
(
json
)
val
jsonObject
=
JSONObject
(
json
)
val
filesJsonArray
=
jsonObject
.
getJSONArray
(
"files"
)
val
filesJsonArray
=
jsonObject
.
getJSONArray
(
"files"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment