Skip to content

Commit d8f1c4c

Browse files
committed
fix
1 parent c9a6db7 commit d8f1c4c

4 files changed

Lines changed: 9 additions & 14 deletions

File tree

app/src/main/java/com/wirelessalien/zipxtract/fragment/SevenZipFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ class SevenZipFragment : Fragment(), ArchiveItemAdapter.OnItemClickListener, Fil
132132
}
133133
})
134134

135-
binding.fabBack.setOnClickListener {
136-
handleBackNavigation()
135+
binding.cancelBtn.setOnClickListener {
136+
parentFragmentManager.popBackStack()
137137
}
138138

139139
adapter = ArchiveItemAdapter(requireContext(), emptyList())

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@
2424
<LinearLayout
2525
android:layout_width="match_parent"
2626
android:layout_height="match_parent"
27-
android:layout_marginTop="16dp"
2827
android:orientation="vertical">
2928

3029
<RelativeLayout
3130
android:layout_width="match_parent"
3231
android:layout_height="wrap_content"
3332
android:layout_marginStart="16dp"
3433
android:layout_marginEnd="16dp"
35-
android:layout_marginBottom="11dp"
3634
android:layout_marginTop="10dp">
3735

3836
<com.google.android.material.button.MaterialButton
@@ -42,7 +40,6 @@
4240
android:layout_height="wrap_content"
4341
android:layout_alignParentStart="true"
4442
android:layout_centerVertical="true"
45-
android:layout_marginEnd="8dp"
4643
android:layout_marginStart="-16dp"
4744
app:icon="@drawable/ic_arrow_back_default" />
4845

@@ -86,6 +83,7 @@
8683
android:text="@string/internal_storage"
8784
android:clickable="true"
8885
android:checkable="false"
86+
android:layout_marginEnd="8dp"
8987
app:shapeAppearance="@style/ShapeAppearance.Material3.Corner.Full"
9088
android:visibility="visible" />
9189

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@
2424
<LinearLayout
2525
android:layout_width="match_parent"
2626
android:layout_height="match_parent"
27-
android:layout_marginTop="16dp"
2827
android:orientation="vertical">
2928

3029
<RelativeLayout
3130
android:layout_width="match_parent"
3231
android:layout_height="wrap_content"
3332
android:layout_marginStart="16dp"
3433
android:layout_marginEnd="16dp"
35-
android:layout_marginBottom="11dp"
3634
android:layout_marginTop="10dp">
3735

3836
<com.google.android.material.button.MaterialButton
@@ -42,7 +40,6 @@
4240
android:layout_height="wrap_content"
4341
android:layout_alignParentStart="true"
4442
android:layout_centerVertical="true"
45-
android:layout_marginEnd="8dp"
4643
android:layout_marginStart="-16dp"
4744
app:icon="@drawable/ic_arrow_back_default" />
4845

@@ -86,6 +83,7 @@
8683
android:text="@string/internal_storage"
8784
android:clickable="true"
8885
android:checkable="false"
86+
android:layout_marginEnd="8dp"
8987
app:shapeAppearance="@style/ShapeAppearance.Material3.Corner.Full"
9088
android:visibility="visible" />
9189

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,17 @@
7070
android:id="@+id/fab_add_file"
7171
android:layout_width="wrap_content"
7272
android:layout_height="wrap_content"
73-
android:layout_toStartOf="@id/fab_back"
73+
android:layout_alignParentEnd="true"
7474
android:layout_marginEnd="10dp"
7575
style="@style/Widget.Material3.Button.TonalButton"
76-
app:icon="@drawable/ic_add"
7776
android:text="@string/add"/>
7877

7978
<com.google.android.material.button.MaterialButton
80-
android:id="@+id/fab_back"
79+
android:id="@+id/cancel_btn"
8180
android:layout_width="wrap_content"
8281
android:layout_height="wrap_content"
83-
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
84-
android:layout_alignParentEnd="true"
85-
app:icon="@drawable/ic_arrow_back"/>
82+
style="@style/Widget.Material3.Button.TextButton"
83+
android:layout_toStartOf="@id/fab_add_file"
84+
android:text="@string/cancel"/>
8685
</RelativeLayout>
8786
</RelativeLayout>

0 commit comments

Comments
 (0)