Update commons lib.

Remove temp code.
This commit is contained in:
terofeev 2025-03-10 11:55:09 +04:00
parent d2fa286676
commit 047d0a6585
6 changed files with 4 additions and 10 deletions

View file

@ -1,3 +0,0 @@
package org.fossify.gallery
const val SORT_BY_COUNT = 524288 // TODO: Replace with Constants from Commons, then delete this file.

View file

@ -59,6 +59,8 @@ open class SimpleActivity : BaseSimpleActivity() {
override fun getAppLauncherName() = getString(R.string.app_launcher_name) override fun getAppLauncherName() = getString(R.string.app_launcher_name)
override fun getRepositoryName() = "Gallery"
protected fun checkNotchSupport() { protected fun checkNotchSupport() {
if (isPiePlus()) { if (isPiePlus()) {
val cutoutMode = when { val cutoutMode = when {

View file

@ -5,7 +5,6 @@ import org.fossify.commons.activities.BaseSimpleActivity
import org.fossify.commons.extensions.* import org.fossify.commons.extensions.*
import org.fossify.commons.helpers.* import org.fossify.commons.helpers.*
import org.fossify.gallery.R import org.fossify.gallery.R
import org.fossify.gallery.SORT_BY_COUNT
import org.fossify.gallery.databinding.DialogChangeSortingBinding import org.fossify.gallery.databinding.DialogChangeSortingBinding
import org.fossify.gallery.extensions.config import org.fossify.gallery.extensions.config
import org.fossify.gallery.helpers.SHOW_ALL import org.fossify.gallery.helpers.SHOW_ALL

View file

@ -37,7 +37,6 @@ import org.fossify.commons.extensions.*
import org.fossify.commons.helpers.* import org.fossify.commons.helpers.*
import org.fossify.commons.views.MySquareImageView import org.fossify.commons.views.MySquareImageView
import org.fossify.gallery.R import org.fossify.gallery.R
import org.fossify.gallery.SORT_BY_COUNT
import org.fossify.gallery.asynctasks.GetMediaAsynctask import org.fossify.gallery.asynctasks.GetMediaAsynctask
import org.fossify.gallery.databases.GalleryDatabase import org.fossify.gallery.databases.GalleryDatabase
import org.fossify.gallery.helpers.* import org.fossify.gallery.helpers.*

View file

@ -289,7 +289,4 @@
Haven't found some strings? There's more at Haven't found some strings? There's more at
https://github.com/FossifyOrg/Commons/tree/master/commons/src/main/res https://github.com/FossifyOrg/Commons/tree/master/commons/src/main/res
--> -->
<!-- Replace with strings.xml from Commons, then delete these lines. -->
<string name="number_of_items">Number of items</string>
</resources> </resources>

View file

@ -13,7 +13,7 @@ exif = "1.0.1"
#Room #Room
room = "2.6.1" room = "2.6.1"
#Fossify #Fossify
commons = "39c99b73c7" commons = "9e28c573e8"
#Gradle4 #Gradle4
gradlePlugins-agp = "8.6.1" gradlePlugins-agp = "8.6.1"
#Other #Other
@ -55,7 +55,7 @@ androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "
androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" } androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" } androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
#Fossify #Fossify
fossify-commons = { module = "org.fossify:commons", version.ref = "commons" } fossify-commons = { module = "com.github.FossifyOrg:Commons", version.ref = "commons" }
#Other #Other
android-gif-drawable = { module = "pl.droidsonroids.gif:android-gif-drawable", version.ref = "androidGifDrawable" } android-gif-drawable = { module = "pl.droidsonroids.gif:android-gif-drawable", version.ref = "androidGifDrawable" }
android-image-cropper = { module = "com.vanniktech:android-image-cropper", version.ref = "androidImageCropper" } android-image-cropper = { module = "com.vanniktech:android-image-cropper", version.ref = "androidImageCropper" }