Skip to content

Commit

Permalink
[setting]: remove Drawable
Browse files Browse the repository at this point in the history
  • Loading branch information
kez-lab committed Dec 30, 2023
1 parent f2fe87f commit 2237689
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,6 @@ fun Fragment.colorOf(@ColorRes resId: Int) = ContextCompat.getColor(requireConte
fun Fragment.drawableOf(@DrawableRes resId: Int) =
ContextCompat.getDrawable(requireContext(), resId)

fun Fragment.showLoading() {
childFragmentManager.commit(allowStateLoss = true) {
add(LoadingProgressIndicator.newInstance(), LoadingProgressIndicator.TAG)
}
}

fun Fragment.hideLoading() {
childFragmentManager.findFragmentByTag(LoadingProgressIndicator.TAG)?.let { fragment ->
childFragmentManager.commit(allowStateLoss = true) {
remove(fragment)
}
}
}

val Fragment.viewLifeCycle
get() = viewLifecycleOwner.lifecycle

Expand Down
13 changes: 0 additions & 13 deletions core/common/src/main/res/drawable/ic_error.xml

This file was deleted.

42 changes: 0 additions & 42 deletions core/common/src/main/res/layout/fragment_error_fullscreen.xml

This file was deleted.

18 changes: 0 additions & 18 deletions core/common/src/main/res/layout/fragment_progress_dialog.xml

This file was deleted.

8 changes: 0 additions & 8 deletions core/common/src/main/res/values/styles.xml

This file was deleted.

0 comments on commit 2237689

Please sign in to comment.