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
827ada1b
Commit
827ada1b
authored
Aug 02, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable SVG support.
parent
52a0d836
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
RocketChatWidgets.java
...in/java/chat/rocket/android/widget/RocketChatWidgets.java
+6
-1
No files found.
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/RocketChatWidgets.java
View file @
827ada1b
...
...
@@ -18,6 +18,11 @@ import okhttp3.OkHttpClient;
public
class
RocketChatWidgets
{
/**
* TODO
* The SVG support (by setImageDecoderConfig method) should be enabled after RC servers are stable.
* Info about that: https://github.com/RocketChat/Rocket.Chat/pull/7572
*/
public
static
void
initialize
(
Context
context
,
OkHttpClient
okHttpClient
)
{
FLog
.
setMinimumLoggingLevel
(
FLog
.
VERBOSE
);
Set
<
RequestListener
>
listeners
=
new
HashSet
<>();
...
...
@@ -26,7 +31,7 @@ public class RocketChatWidgets {
ImagePipelineConfig
imagePipelineConfig
=
OkHttpImagePipelineConfigFactory
.
newBuilder
(
context
,
okHttpClient
)
.
setRequestListeners
(
listeners
)
.
setImageDecoderConfig
(
CustomImageFormatConfigurator
.
createImageDecoderConfig
())
//
.setImageDecoderConfig(CustomImageFormatConfigurator.createImageDecoderConfig())
.
setDownsampleEnabled
(
true
)
.
experiment
().
setBitmapPrepareToDraw
(
true
)
.
experiment
().
setPartialImageCachingEnabled
(
true
)
...
...
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