Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 4.7 KB

DEV_MEMO.md

File metadata and controls

56 lines (45 loc) · 4.7 KB

Known Bugs

  • ActivityResultContracts.TakePicture() <Uri, Bitmap?> cannot guarantee result of a bitmap(i.e. default camera), I reported here Fixed on Activity 1.2.0-alpha05 by changed result to a boolean for successful save
  • [VP2 memory leak](https://issuetracker.google.com/issues/154751401). Fragment Navigation in a fragment within a VP2, which hosted by a Fragment causes memory leak. Fixed here
  • VP2 same direction nested scrolling Currently solved by wrapping VP2 with a outer Frame and intercepts from parent
  • Too much measurement in RecyclerView Items, causing janks on some devices

Notes

Saving image in Scoped Storage

Open Permission Denied Scope Storage Handling files

Kotlin Coroutines

Patterns Link1 Link2 Flow Flow+MVVM Lazy and etc.

API Response Wrapper

convert API responses to a sealed subclass like Resources.Success, Resources.Failed sample1 sample2

Room

Migration Room + LiveData POJO error Livedata not updated Official Tips

LiveData

LiveData & Fragment Lifecycle LiveData & ViewModel,Repository cont. ** When using with room, ensure livedata has observer**

Dagger

Touch

onintercepttouchevent-vs-dispatchtouchevent

Issued Faced

Expands toolbar(or other layout) to status bar

Kotlin data class with default values and null Gson Approach, recommends using Moshi instead