Skip to content

Commit

Permalink
Mark almost all resources as private. (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech authored May 11, 2022
1 parent 37a7e0d commit 03c6ed4
Show file tree
Hide file tree
Showing 22 changed files with 52 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class MainActivity : AppCompatActivity() {
onEmojiClickListener = { emoji -> Timber.d(TAG, "Clicked on Emoji " + emoji.unicode) },
onEmojiPopupShownListener = { binding.chatEmoji.setImageResource(R.drawable.ic_keyboard) },
onSoftKeyboardOpenListener = { px -> Timber.d(TAG, "Opened soft keyboard with height $px") },
onEmojiPopupDismissListener = { binding.chatEmoji.setImageResource(R.drawable.emoji_ios_category_smileysandpeople) },
onEmojiPopupDismissListener = { binding.chatEmoji.setImageResource(R.drawable.ic_emojis) },
onSoftKeyboardCloseListener = { Timber.d(TAG, "Closed soft keyboard") },
keyboardAnimationStyle = R.style.emoji_fade_animation_style,
pageTransformer = PageTransformer(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class MainDialog : DialogFragment() {
onEmojiClickListener = { emoji: Emoji -> Timber.d(TAG, "Clicked on Emoji " + emoji.unicode) },
onEmojiPopupShownListener = { emojiButton.setImageResource(R.drawable.ic_keyboard) },
onSoftKeyboardOpenListener = { px -> Timber.d(TAG, "Opened soft keyboard with height $px") },
onEmojiPopupDismissListener = { emojiButton.setImageResource(R.drawable.emoji_ios_category_smileysandpeople) },
onEmojiPopupDismissListener = { emojiButton.setImageResource(R.drawable.ic_emojis) },
onSoftKeyboardCloseListener = { Timber.d(TAG, "Closed soft keyboard") },
keyboardAnimationStyle = R.style.emoji_fade_animation_style,
)
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/drawable/ic_close.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_emojis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24"
android:width="24dp">
<path
android:fillColor="#FF000000"
android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8zM15.5,11c0.83,0 1.5,-0.67 1.5,-1.5S16.33,8 15.5,8 14,8.67 14,9.5s0.67,1.5 1.5,1.5zM8.5,11c0.83,0 1.5,-0.67 1.5,-1.5S9.33,8 8.5,8 7,8.67 7,9.5 7.67,11 8.5,11zM12,17.5c2.33,0 4.31,-1.46 5.11,-3.5L6.89,14c0.8,2.04 2.78,3.5 5.11,3.5z" />
</vector>
1 change: 1 addition & 0 deletions app/src/main/res/drawable/ic_keyboard.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/drawable/ic_send.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="12dp"
android:scaleType="centerCrop"
app:srcCompat="@drawable/emoji_ios_category_smileysandpeople"
app:srcCompat="@drawable/ic_emojis"
tools:ignore="ContentDescription"
/>
<com.vanniktech.emoji.EmojiEditText
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/dialog_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="12dp"
android:scaleType="centerCrop"
app:srcCompat="@drawable/emoji_ios_category_smileysandpeople"
app:srcCompat="@drawable/ic_emojis"
tools:ignore="ContentDescription"
/>
<EditText
Expand Down
4 changes: 4 additions & 0 deletions emoji-facebook/src/main/res/values/public.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public />
</resources>
4 changes: 4 additions & 0 deletions emoji-google-compat/src/main/res/values/public.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public />
</resources>
4 changes: 4 additions & 0 deletions emoji-google/src/main/res/values/public.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public />
</resources>
4 changes: 4 additions & 0 deletions emoji-ios/src/main/res/values/public.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public />
</resources>
4 changes: 4 additions & 0 deletions emoji-material/src/main/res/values/public.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public />
</resources>
4 changes: 4 additions & 0 deletions emoji-twitter/src/main/res/values/public.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public />
</resources>
1 change: 1 addition & 0 deletions emoji/src/main/res/drawable/emoji_backspace.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true"
android:height="24dp"
Expand Down
1 change: 1 addition & 0 deletions emoji/src/main/res/drawable/emoji_recent.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:tint="?attr/colorControlNormal"
Expand Down
1 change: 1 addition & 0 deletions emoji/src/main/res/drawable/emoji_search.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:tint="?attr/colorControlNormal"
Expand Down
8 changes: 4 additions & 4 deletions emoji/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="emoji_grid_view_column_width">36dp</dimen>
<dimen name="emoji_grid_view_spacing">6dp</dimen>
<dimen name="emoji_search_spacing">16dp</dimen>
<dimen name="emoji_search_max_height">300dp</dimen>
<dimen name="emoji_grid_view_column_width">36dp</dimen>
<dimen name="emoji_grid_view_spacing">6dp</dimen>
<dimen name="emoji_search_spacing">16dp</dimen>
<dimen name="emoji_search_max_height">300dp</dimen>
</resources>
4 changes: 4 additions & 0 deletions emoji/src/main/res/values/public.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public name="emoji_fade_animation_style" type="style" />
</resources>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 03c6ed4

Please sign in to comment.