Skip to content

Commit 1ad280a

Browse files
committed
Make functions open
1 parent c9372fd commit 1ad280a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ publish {
2727
userOrg = 'buffer'
2828
groupId = 'org.buffer.android'
2929
artifactId = 'android-utils'
30-
publishVersion = '0.1'
30+
publishVersion = '0.2'
3131
desc = 'An Android library for frequently used utility functions'
3232
website = 'https://github.com/bufferapp/android-utils'
3333
}

lib/src/main/java/org/buffer/android/utils/ApiLevelHelper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import android.os.Build
44

55
object ApiLevelHelper {
66

7-
fun isAtLeast(apiLevel: Int): Boolean {
7+
open fun isAtLeast(apiLevel: Int): Boolean {
88
return Build.VERSION.SDK_INT >= apiLevel
99
}
1010

11-
fun isLowerThan(apiLevel: Int): Boolean {
11+
open fun isLowerThan(apiLevel: Int): Boolean {
1212
return Build.VERSION.SDK_INT < apiLevel
1313
}
1414
}

lib/src/main/java/org/buffer/android/utils/KeyboardUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import android.view.View
55
import android.view.inputmethod.InputMethodManager
66

77
object KeyboardUtil {
8-
fun closeSoftKeyboard(view: View?) {
8+
open fun closeSoftKeyboard(view: View?) {
99
if (view != null) {
1010
val inputManager = view.context.getSystemService(
1111
Context.INPUT_METHOD_SERVICE) as InputMethodManager?

0 commit comments

Comments
 (0)