Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
WirelessAlien committed Dec 26, 2024
1 parent acae7e7 commit a300afd
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ class AboutFragment : DialogFragment() {
donateFragment.show(requireActivity().supportFragmentManager, "donationFragment")
}



binding.shareIcon.setOnClickListener {
val githubUrl = "https://github.com/WirelessAlien/ZipXtract"
val shareIntent = Intent(Intent.ACTION_SEND)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,12 @@ class MainFragment : Fragment(), FileAdapter.OnItemClickListener, FileAdapter.On
actionMode?.finish() // Destroy the action mode
true
}

R.id.menu_action_unselect_all -> {
unselectAllFiles()
actionMode?.finish() // Destroy the action mode
true
}
else -> false
}
}
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_compress.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="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M200,560Q183,560 171.5,548.5Q160,537 160,520Q160,503 171.5,491.5Q183,480 200,480L760,480Q777,480 788.5,491.5Q800,503 800,520Q800,537 788.5,548.5Q777,560 760,560L200,560ZM200,440Q183,440 171.5,428.5Q160,417 160,400Q160,383 171.5,371.5Q183,360 200,360L760,360Q777,360 788.5,371.5Q800,383 800,400Q800,417 788.5,428.5Q777,440 760,440L200,440ZM480,880Q463,880 451.5,868.5Q440,857 440,840L440,752L404,788Q393,799 376,799Q359,799 348,788Q337,777 337,760Q337,743 348,732L452,628Q458,622 465,619.5Q472,617 480,617Q488,617 495,619.5Q502,622 508,628L612,732Q623,743 623.5,759.5Q624,776 612,788Q601,799 584.5,799.5Q568,800 556,789L520,754L520,840Q520,857 508.5,868.5Q497,880 480,880ZM480,303Q472,303 465,300.5Q458,298 452,292L348,188Q337,177 337,160Q337,143 348,132Q359,121 376,121Q393,121 404,132L440,168L440,80Q440,63 451.5,51.5Q463,40 480,40Q497,40 508.5,51.5Q520,63 520,80L520,168L556,132Q567,121 584,121Q601,121 612,132Q623,143 623,160Q623,177 612,188L508,292Q502,298 495,300.5Q488,303 480,303Z"/>
</vector>
25 changes: 0 additions & 25 deletions app/src/main/res/drawable/ic_create_z.xml

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
app:shapeAppearance="@style/ShapeAppearance.Material3.Corner.Medium"
android:text="@string/archive"
app:layout_behavior="com.google.android.material.behavior.HideViewOnScrollBehavior"
android:src="@drawable/ic_create_z" />
android:src="@drawable/ic_compress" />

<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
android:id="@+id/createZipFab"
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/res/menu/menu_action.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@
android:title="@string/compress_tar"
app:showAsAction="never" />

<item
android:id="@+id/menu_action_unselect_all"
android:icon="@drawable/ic_close"
app:showAsAction="always"
android:title="@string/close" />

<item
android:id="@+id/menu_action_select_all"
android:title="@string/select_all"
android:icon="@drawable/ic_select_all"
app:showAsAction="ifRoom" />

</menu>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,6 @@
<string name="archive_success">File archived successfully</string>
<string name="sd_card">SD Card</string>
<string name="permission_not_granted">Permission not granted</string>
<string name="close">Close</string>

</resources>

0 comments on commit a300afd

Please sign in to comment.