Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7f11561
chore: bump target SDK version to 35
naveensingh Jul 29, 2025
7ec1cda
fix: handle nullable values properly
naveensingh Oct 18, 2025
b1e11cc
feat!: enable edge to edge
naveensingh Oct 18, 2025
b785e3a
feat!: bump target SDK version to 36
naveensingh Oct 18, 2025
a4c566c
fix!: convert compose properties to extension functions
naveensingh Oct 18, 2025
34af5ce
refactor!: rework edge to edge helpers
naveensingh Oct 20, 2025
ea5a956
feat(customization): change navigation icon button from cross to arrow
naveensingh Oct 21, 2025
0682193
feat: add helpers for system bars
naveensingh Oct 21, 2025
a592e97
refactor: rework search bar layout
naveensingh Oct 21, 2025
34fb3ad
refactor: rename method
naveensingh Oct 21, 2025
f89343c
fix: apply horizontal insets too
naveensingh Oct 21, 2025
03b74a9
refactor!: rework edge to edge helper again
naveensingh Oct 22, 2025
14a7b7b
refactor: accept view as parameter in insetsController()
naveensingh Oct 23, 2025
13f4da2
fix: ignore visibility when applying system insets
naveensingh Oct 23, 2025
8d49300
refactor: make transient behavior optional
naveensingh Oct 24, 2025
435144c
chore: update lint baselines
naveensingh Oct 24, 2025
de88a43
refactor!: remove deprecated system bar related extensions
naveensingh Oct 24, 2025
183bdd7
fix: pad display cutout as well
naveensingh Oct 24, 2025
6b030aa
refactor: remove duplicated code
naveensingh Oct 24, 2025
ec139d7
feat: add modern back navigation handling
naveensingh Oct 24, 2025
ab799f2
feat!: add helper for cutout padding
naveensingh Oct 24, 2025
0c8c5c6
feat: add version checks for android 15 and 16
naveensingh Oct 24, 2025
90eeb75
feat(window): pad for display cutouts by default
naveensingh Oct 24, 2025
0828d75
feat(commons): cancel scroll animation in onDestroy
naveensingh Oct 24, 2025
fbfc32d
feat: add default animation duration constant
naveensingh Oct 24, 2025
8201593
fix: use proper system icon colors with search bars
naveensingh Oct 24, 2025
f954370
fix: disable search bar scrolling for now
naveensingh Oct 24, 2025
373cfbd
fix: don't double pad due to cutout
naveensingh Oct 25, 2025
97c84cc
refactor: migrate away from deprecated `onBackPressed()`
naveensingh Oct 25, 2025
f622cc8
feat: preserve base padding when applying insets
naveensingh Oct 25, 2025
0efca3b
fix: prevent FAB overlap with system bars
naveensingh Oct 25, 2025
0a9ddaa
fix: migrate away from deprecated `onBackPressed()`
naveensingh Oct 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 5 additions & 47 deletions commons/detekt-baseline.xml

Large diffs are not rendered by default.

666 changes: 333 additions & 333 deletions commons/lint-baseline.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,23 @@ import android.app.Activity
import android.content.Intent
import android.os.Bundle
import androidx.activity.addCallback
import androidx.appcompat.app.AppCompatActivity
import androidx.biometric.auth.AuthPromptHost
import org.fossify.commons.R
import org.fossify.commons.adapters.AppLockAdapter
import org.fossify.commons.databinding.ActivityAppLockBinding
import org.fossify.commons.extensions.*
import org.fossify.commons.extensions.appLockManager
import org.fossify.commons.extensions.baseConfig
import org.fossify.commons.extensions.getProperBackgroundColor
import org.fossify.commons.extensions.getThemeId
import org.fossify.commons.extensions.isBiometricAuthSupported
import org.fossify.commons.extensions.onGlobalLayout
import org.fossify.commons.extensions.overrideActivityTransition
import org.fossify.commons.extensions.viewBinding
import org.fossify.commons.helpers.PROTECTION_FINGERPRINT
import org.fossify.commons.helpers.isRPlus
import org.fossify.commons.interfaces.HashListener

class AppLockActivity : AppCompatActivity(), HashListener {
class AppLockActivity : EdgeToEdgeActivity(), HashListener {

private val binding by viewBinding(ActivityAppLockBinding::inflate)

Expand All @@ -24,6 +30,7 @@ class AppLockActivity : AppCompatActivity(), HashListener {

super.onCreate(savedInstanceState)
setContentView(binding.root)
setupEdgeToEdge(padBottomSystem = listOf(binding.viewPager))
onBackPressedDispatcher.addCallback(owner = this) {
appLockManager.lock()
finishAffinity()
Expand Down Expand Up @@ -77,8 +84,6 @@ class AppLockActivity : AppCompatActivity(), HashListener {
private fun setupTheme() {
setTheme(getThemeId(showTransparentTop = true))
with(getProperBackgroundColor()) {
window.updateStatusBarColors(this)
window.updateNavigationBarColors(this)
window.decorView.setBackgroundColor(this)
}
}
Expand Down
Loading
Loading