Skip to content

1.1.0

Choose a tag to compare

@DylanCaiCoding DylanCaiCoding released this 29 Jun 06:16

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 xxxxLauncher with registerForXXXXResult. For example, replace requestPermissionLauncher {...} with registerForRequestPermissionResult {...}.
  • Fix #8

Application.kt

  • Add appIcon
  • Replace launchAppDetailsSettings() with launchAppSettings()

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

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(...)