Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
android-components
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
The Tor Project
Applications
android-components
Commits
c56a90a1
Commit
c56a90a1
authored
Oct 6, 2020
by
Alex Catarineu
Committed by
Matthew Finkel
Nov 13, 2020
Browse files
Options
Downloads
Patches
Plain Diff
Bug 40016: Allow inheriting from AddonCollectionProvider
This will allow implementing our own AddonsProvider in fenix.
parent
cbb5de32
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!32
Bug 40026 00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/feature/addons/src/main/java/mozilla/components/feature/addons/amo/AddonCollectionProvider.kt
+3
-3
3 additions, 3 deletions
.../components/feature/addons/amo/AddonCollectionProvider.kt
with
3 additions
and
3 deletions
components/feature/addons/src/main/java/mozilla/components/feature/addons/amo/AddonCollectionProvider.kt
+
3
−
3
View file @
c56a90a1
...
...
@@ -58,7 +58,7 @@ internal const val PAGE_SIZE = 50
* cache is being used by default
*/
@Suppress
(
"LongParameterList"
)
class
AddonCollectionProvider
(
open
class
AddonCollectionProvider
(
private
val
context
:
Context
,
private
val
client
:
Client
,
private
val
serverURL
:
String
=
DEFAULT_SERVER_URL
,
...
...
@@ -156,7 +156,7 @@ class AddonCollectionProvider(
* a connectivity problem or a timeout.
*/
@Throws
(
IOException
::
class
)
suspend
fun
getAddonIconBitmap
(
addon
:
Addon
):
Bitmap
?
{
open
suspend
fun
getAddonIconBitmap
(
addon
:
Addon
):
Bitmap
?
{
var
bitmap
:
Bitmap
?
=
null
if
(
addon
.
iconUrl
!=
""
)
{
client
.
fetch
(
...
...
@@ -174,7 +174,7 @@ class AddonCollectionProvider(
}
@VisibleForTesting
internal
fun
writeToDiskCache
(
collectionResponse
:
String
)
{
protected
fun
writeToDiskCache
(
collectionResponse
:
String
)
{
synchronized
(
diskCacheLock
)
{
getCacheFile
(
context
).
writeString
{
collectionResponse
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment