Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
App Lounge
Commits
374935f4
Commit
374935f4
authored
Jan 19, 2019
by
Nihar Thakkar
Browse files
Don't show error while loading more apps
parent
777c9bb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/io/eelo/appinstaller/search/model/SearchModel.kt
View file @
374935f4
...
...
@@ -47,7 +47,9 @@ class SearchModel : SearchModelInterface {
SearchElement
(
searchQuery
,
pageNumber
,
applicationManager
!!
,
this
)
.
executeOnExecutor
(
AsyncTask
.
THREAD_POOL_EXECUTOR
,
context
)
}
else
{
screenError
.
value
=
Error
.
NO_INTERNET
if
(
pageNumber
==
1
)
{
screenError
.
value
=
Error
.
NO_INTERNET
}
}
}
...
...
@@ -60,11 +62,13 @@ class SearchModel : SearchModelInterface {
}
else
{
this
.
applicationList
.
value
=
applicationList
}
if
(
applicationList
.
isEmpty
())
{
if
(
applicationList
.
isEmpty
()
&&
pageNumber
==
1
)
{
screenError
.
value
=
Error
.
NO_RESULTS
}
}
else
{
screenError
.
value
=
error
if
(
pageNumber
==
1
)
{
screenError
.
value
=
error
}
}
}
}
Write
Preview
Supports
Markdown
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