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
7dfe80c1
Commit
7dfe80c1
authored
Aug 10, 2018
by
Leonardo Aramaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dimens
parent
b88cd88b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
EmojiParser.kt
emoji/src/main/java/chat/rocket/android/emoji/EmojiParser.kt
+1
-2
EmojiRepository.kt
...rc/main/java/chat/rocket/android/emoji/EmojiRepository.kt
+1
-2
dimens.xml
emoji/src/main/res/values/dimens.xml
+3
-2
No files found.
emoji/src/main/java/chat/rocket/android/emoji/EmojiParser.kt
View file @
7dfe80c1
...
...
@@ -77,8 +77,7 @@ class EmojiParser {
val
customEmojis
=
EmojiRepository
.
getCustomEmojis
()
val
density
=
context
.
resources
.
displayMetrics
.
density
val
px
=
(
22
*
density
).
toInt
()
val
px
=
context
.
resources
.
getDimensionPixelSize
(
R
.
dimen
.
custom_emoji_small
)
return
spannable
.
also
{
regex
.
findAll
(
spannable
).
iterator
().
forEach
{
match
->
...
...
emoji/src/main/java/chat/rocket/android/emoji/EmojiRepository.kt
View file @
7dfe80c1
...
...
@@ -107,8 +107,7 @@ object EmojiRepository {
saveEmojisToDatabase
(
allEmojis
.
toList
())
// Prefetch all custom emojis to make cache.
val
density
=
context
.
resources
.
displayMetrics
.
density
val
px
=
(
32
*
density
).
toInt
()
val
px
=
context
.
resources
.
getDimensionPixelSize
(
R
.
dimen
.
custom_emoji_large
)
customEmojis
.
forEach
{
val
future
=
Glide
.
with
(
context
)
...
...
emoji/src/main/res/values/dimens.xml
View file @
7dfe80c1
...
...
@@ -5,5 +5,6 @@
<dimen
name=
"supposed_keyboard_height"
>
252dp
</dimen>
<dimen
name=
"picker_popup_height"
>
250dp
</dimen>
<dimen
name=
"picker_popup_width"
>
300dp
</dimen>
</resources>
\ No newline at end of file
<dimen
name=
"custom_emoji_large"
>
32dp
</dimen>
<dimen
name=
"custom_emoji_small"
>
22dp
</dimen>
</resources>
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