Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Commit 23989b1

Browse files
committed
fixed issues #74 and #76
1 parent 94d1244 commit 23989b1

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ android {
1414
applicationId "com.jjewuz.justnotes"
1515
minSdk 30
1616
targetSdk 35
17-
versionCode 202
18-
versionName "5.7.2"
17+
versionCode 203
18+
versionName "5.8.0"
1919

2020
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2121

app/release/output-metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"type": "SINGLE",
1212
"filters": [],
1313
"attributes": [],
14-
"versionCode": 200,
15-
"versionName": "5.7.0",
14+
"versionCode": 202,
15+
"versionName": "5.7.2",
1616
"outputFile": "app-release.apk"
1717
}
1818
],

app/src/main/java/com/jjewuz/justnotes/Activities/AddCategory.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ package com.jjewuz.justnotes.Activities
33
import android.content.Context
44
import android.content.SharedPreferences
55
import android.os.Bundle
6+
import android.view.ViewGroup
67
import androidx.activity.enableEdgeToEdge
78
import androidx.appcompat.app.AppCompatActivity
9+
import androidx.core.view.ViewCompat
10+
import androidx.core.view.WindowInsetsCompat
811
import androidx.recyclerview.widget.LinearLayoutManager
912
import com.google.android.material.dialog.MaterialAlertDialogBuilder
1013
import com.google.android.material.textfield.TextInputEditText
@@ -66,6 +69,15 @@ class AddCategory : AppCompatActivity() {
6669
binding.addCategory.setOnClickListener {
6770
addDialog()
6871
}
72+
73+
ViewCompat.setOnApplyWindowInsetsListener(binding.addCategory) { vi, windowInsets ->
74+
val insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
75+
val params = vi.layoutParams as ViewGroup.MarginLayoutParams
76+
params.bottomMargin = insets.bottom + 20
77+
params.rightMargin = insets.right + 40
78+
vi.layoutParams = params
79+
WindowInsetsCompat.CONSUMED
80+
}
6981
}
7082

7183
override fun onSupportNavigateUp(): Boolean {

app/src/main/res/layout/note_widget.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
android:layout_height="wrap_content"
3939
android:layout_marginStart="5dp"
4040
android:layout_marginTop="5dp"
41-
android:maxLines="8"
4241
android:ellipsize="end"
4342
android:text="@string/choose_note" />
4443

0 commit comments

Comments
 (0)