Skip to content

Commit e56ef63

Browse files
author
therealbluepandabear
committed
Replace with name_project_alert.
1 parent 6102378 commit e56ef63

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

app/src/main/java/com/therealbluepandabear/pixapencil/activities/main/oncreate/MainActivity+initActivityResultLauncher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fun MainActivity.initActivityResultLauncher() {
1414
galleryActivityLauncher = registerForActivityResult(ActivityResultContracts.OpenDocument()) {
1515
if (it != null) {
1616
val textInput: TextInputLayout =
17-
layoutInflater.inflate(R.layout.save_file_under_new_name_alert, findViewById(android.R.id.content),false) as TextInputLayout
17+
layoutInflater.inflate(R.layout.name_project_alert, findViewById(android.R.id.content),false) as TextInputLayout
1818
val text = textInput.editText?.text
1919

2020
showDialog(
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<!--When create views that will be used in dialogs, use padding instead of margin-->
4+
5+
<com.google.android.material.textfield.TextInputLayout
6+
android:layout_width="match_parent"
7+
android:layout_height="wrap_content"
8+
android:paddingStart="16dp"
9+
android:paddingEnd="16dp"
10+
android:hint="@string/fragmentNewProject_name"
11+
app:layout_constraintEnd_toEndOf="parent"
12+
app:layout_constraintStart_toEndOf="@+id/fragmentHexadecimalColorPicker_colorPreview"
13+
app:layout_constraintTop_toTopOf="parent"
14+
xmlns:android="http://schemas.android.com/apk/res/android"
15+
xmlns:app="http://schemas.android.com/apk/res-auto">
16+
<com.google.android.material.textfield.TextInputEditText
17+
android:layout_width="match_parent"
18+
android:layout_height="wrap_content" />
19+
</com.google.android.material.textfield.TextInputLayout>

0 commit comments

Comments
 (0)