1.1.0
Activity.kt
- Add
finishToActivity<T>() - Add
finishAllActivitiesExcept<T>() - Add
ComponentActivity.doOnBackPressed {...}
ActivityResult.kt
Optimize the usage to make it closer to the usage of ActivityResult API.
- Replace all methed name
xxxxLauncherwithregisterForXXXXResult. For example, replacerequestPermissionLauncher {...}withregisterForRequestPermissionResult {...}. - Fix #8
Application.kt
- Add
appIcon - Replace
launchAppDetailsSettings()withlaunchAppSettings()
Crash.kt
- Add
handleMainThreadException {...}
DateTime.kt
Replace kotlinx-datetime with Java8 LocalDateTime and remove functions that are not needed.
Fragment.kt
- Add
Fragment.pressBackTwiceToExitApp(...) - Add
Fragment.pressBackToNotExitApp() - Add
Fragment.doOnBackPressed {...}
Keyboard.kt
The receiver can only be a view.
- Remove
Activity/Fragment.showKeyboard() - Remove
Activity/Fragment.hideKeyboard() - Remove
Activity/Fragment.toggleKeyboard() - Remove
Activity/Fragment.isKeyboardVisible - Remove
Activity/Fragment.keyboardHeight
Lifecycle.kt
- Fix #11
Network.kt
- Add new class
WifiListLiveData - Add
ScanResult.is24GHz - Add
ScanResult.is5GHz
Shell.kt
- Add
executeCmd(command)
String.kt
- Add
Float/Double.toNumberString([fractionDigits], [minIntDigits], [isGrouping], [isHalfUp])
TextView.kt
- Add
TextView.enableWhenAllChecked(checkBoxes)
Thread.kt
- Add
isMainThread
RecyclerView.kt
- Add
RecyclerView.addItemPadding(...)