Skip to content

Commit 35532ea

Browse files
authored
Merge branch 'main' into naveensingh/disable-autoplay-on-seek
2 parents 1db4d29 + b402180 commit 35532ea

File tree

3 files changed

+27
-9
lines changed

3 files changed

+27
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
89
### Changed
910
- Player now respects play/pause state when seeking
1011

12+
### Fixed
13+
- Fixed crash in editor when launched from other apps ([#786])
14+
15+
1116
## [1.9.0] - 2025-11-08
1217
### Changed
1318
- Restored ability to show/hide notch area ([#749])
@@ -241,6 +246,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
241246
[#752]: https://github.com/FossifyOrg/Gallery/issues/752
242247
[#754]: https://github.com/FossifyOrg/Gallery/issues/754
243248
[#759]: https://github.com/FossifyOrg/Gallery/issues/759
249+
[#786]: https://github.com/FossifyOrg/Gallery/issues/786
244250

245251
[Unreleased]: https://github.com/FossifyOrg/Gallery/compare/1.9.0...HEAD
246252
[1.9.0]: https://github.com/FossifyOrg/Gallery/compare/1.8.1...1.9.0

app/src/main/kotlin/org/fossify/gallery/activities/EditActivity.kt

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import android.net.Uri
88
import android.os.Bundle
99
import android.os.Handler
1010
import android.provider.MediaStore
11-
import android.widget.RelativeLayout
11+
import androidx.constraintlayout.widget.ConstraintLayout
1212
import androidx.core.graphics.scale
1313
import androidx.core.net.toUri
1414
import androidx.exifinterface.media.ExifInterface
@@ -130,8 +130,15 @@ class EditActivity : BaseCropActivity() {
130130
override fun onCreate(savedInstanceState: Bundle?) {
131131
super.onCreate(savedInstanceState)
132132
setContentView(binding.root)
133+
isCropIntent = intent.extras?.get(CROP) == "true"
133134
setupEdgeToEdge(
134-
padBottomSystem = listOf(binding.bottomEditorPrimaryActions.root)
135+
padBottomSystem = listOf(
136+
if (isCropIntent) {
137+
binding.bottomEditorCropRotateActions.root
138+
} else {
139+
binding.bottomEditorPrimaryActions.root
140+
}
141+
)
135142
)
136143

137144
if (checkAppSideloading()) {
@@ -210,10 +217,15 @@ class EditActivity : BaseCropActivity() {
210217
else -> uri!!
211218
}
212219

213-
isCropIntent = extras?.get(CROP) == "true"
214220
if (isCropIntent) {
215221
binding.bottomEditorPrimaryActions.root.beGone()
216-
(binding.bottomEditorCropRotateActions.root.layoutParams as RelativeLayout.LayoutParams).addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, 1)
222+
223+
val params = binding.bottomEditorCropRotateActions.root.layoutParams as? ConstraintLayout.LayoutParams
224+
if (params != null) {
225+
params.bottomToBottom = binding.activityEditHolder.id
226+
binding.bottomEditorCropRotateActions.root.layoutParams = params
227+
}
228+
217229
binding.editorToolbar.menu.findItem(R.id.overwrite_original).isVisible = false
218230
}
219231

gradle/libs.versions.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#jetbrains
33
kotlin = "2.2.21"
44
#KSP
5-
ksp = "2.3.0"
5+
ksp = "2.3.2"
66
#Detekt
77
detekt = "1.23.8"
88
detektCompose = "0.4.27"
@@ -14,9 +14,9 @@ androidx-documentfile = "1.1.0"
1414
#exif
1515
exif = "1.0.1"
1616
#Room
17-
room = "2.8.3"
17+
room = "2.8.4"
1818
#Fossify
19-
commons = "5.7.2"
19+
commons = "5.7.3"
2020
#Gradle4
2121
gradlePlugins-agp = "8.11.1"
2222
#Other
@@ -31,8 +31,8 @@ androidsvgAar = "1.4"
3131
androidphotofilters = "193f2ae509"
3232
sanselan = "0.97-incubator"
3333
media3Exoplayer = "1.8.0"
34-
okhttp = "5.3.0"
35-
okio = "3.16.2"
34+
okhttp = "5.3.2"
35+
okio = "3.16.4"
3636
picasso = "2.71828"
3737
subsamplingScaleImageView = "d705c3c4ad"
3838
#build

0 commit comments

Comments
 (0)