Skip to content

Commit

Permalink
improve ui + hide compat sticker dir
Browse files Browse the repository at this point in the history
  • Loading branch information
FredHappyface committed Jun 23, 2021
1 parent 7f9debf commit 3a17799
Show file tree
Hide file tree
Showing 22 changed files with 361 additions and 140 deletions.
40 changes: 40 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "com.fredhappyface.ewesticker"
minSdkVersion 28
targetSdkVersion 30
versionCode 20210612
versionName "2021.06.12"
versionCode 20210623
versionName "2021.06.23"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down Expand Up @@ -43,9 +43,6 @@ dependencies {
implementation 'androidx.core:core-ktx:1.5.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
implementation 'androidx.preference:preference-ktx:1.1.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
Expand Down
Binary file removed app/debug/app-debug_2021.06.12_2021-06-12.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ImageKeyboard : InputMethodService() {
val packCard = layoutInflater.inflate(R.layout.pack_card, packContainer, false)
val backButton = packCard.findViewById<ImageButton>(R.id.ib3)
val icon =
ResourcesCompat.getDrawable(resources, R.drawable.tabler_icon_arrow_back_white, null)
ResourcesCompat.getDrawable(resources, R.drawable.ic_chevron_left, null)
backButton.setImageDrawable(icon)
backButton.setOnClickListener {
val inputMethodManager = applicationContext
Expand Down Expand Up @@ -299,7 +299,8 @@ class ImageKeyboard : InputMethodService() {
private fun reloadPacks() {
loadedPacks = HashMap()
internalDir = File(filesDir, "stickers")
val packs = internalDir.listFiles { obj: File -> obj.isDirectory }
val packs =
internalDir.listFiles { obj: File -> obj.isDirectory && !obj.absolutePath.contains("stickers/__compatSticker__") }
if (packs != null) {
for (file in packs) {
val pack = StickerPack(file)
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_chevron_left.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="16dp"
android:height="16dp"
android:viewportWidth="16"
android:viewportHeight="16">
<path
android:fillColor="@color/fg"
android:fillType="evenOdd"
android:pathData="M9.78,12.78a0.75,0.75 0,0 1,-1.06 0L4.47,8.53a0.75,0.75 0,0 1,0 -1.06l4.25,-4.25a0.75,0.75 0,0 1,1.06 1.06L6.06,8l3.72,3.72a0.75,0.75 0,0 1,0 1.06z" />
</vector>
Binary file not shown.
Binary file added app/src/main/res/font/firasans_nf.ttf
Binary file not shown.
Loading

0 comments on commit 3a17799

Please sign in to comment.