Skip to content

Instantly share code, notes, and snippets.

View Aksx73's full-sized avatar

Akshay Nighot Aksx73

View GitHub Profile
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
...
...
getRamInfoTimer()
}
private fun getRamInfoTimer() {
TimerUtil.tickerFlow(1.seconds)
.flowWithLifecycle(viewLifecycleOwner.lifecycle,Lifecycle.State.STARTED)
@Aksx73
Aksx73 / ic_launcher.xml
Last active July 2, 2023 12:23
Enable themed icon support
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<!-- Added monochrome layer -->
<monochrome android:drawable="@drawable/ic_launcher_monochrome"/>
</adaptive-icon>
<application
...
android:name=".app.MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
...>
</application>