Skip to content

Commit 974ab47

Browse files
Merge pull request #10 from Omega-R/develop
Develop
2 parents ecf72aa + bff4d66 commit 974ab47

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

extensionslib/src/main/java/com/omega_r/libs/extensions/context/ContextExtensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import android.app.Activity
44
import android.content.Context
55
import android.content.ContextWrapper
66

7-
private fun Context.asActivity(): Activity? {
7+
fun Context.asActivity(): Activity? {
88
return when(this) {
99
is Activity -> this
1010
is ContextWrapper -> baseContext.asActivity()
1111
else -> null
1212
}
13-
}
13+
}

extensionslib/src/main/java/com/omega_r/libs/extensions/fragment/FragmentManagerExtensions.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ inline fun FragmentManager.edit(
1111
beginTransaction()
1212
.apply(block)
1313
.apply {
14-
commitAllowingStateLoss()
1514
if (commitNow) {
1615
if (allowingStateLoss) {
1716
commitNowAllowingStateLoss()

0 commit comments

Comments
 (0)