Added new icon

Fix bottom tabs showing rotating, coming notification or widgets
This commit is contained in:
Hemanth S 2020-10-11 22:45:27 +05:30
parent 2432080d3c
commit a0f4394099
45 changed files with 272 additions and 344 deletions

View file

@ -15,6 +15,7 @@
package code.name.monkey.retromusic.extensions
import android.app.Activity
import androidx.annotation.DimenRes
import androidx.appcompat.app.AppCompatActivity
import code.name.monkey.appthemehelper.util.ToolbarContentTintHelper
import com.google.android.material.appbar.MaterialToolbar
@ -34,3 +35,7 @@ inline fun <reified T : Any> Activity.extraNotNull(key: String, default: T? = nu
val value = intent?.extras?.get(key)
requireNotNull(if (value is T) value else default) { key }
}
fun Activity.dip(@DimenRes id: Int): Int {
return resources.getDimensionPixelSize(id)
}