Change app style

Update the app style by modifying some colors & using Source Code Pro. Yes, this looks like Music Player GO but Ill probably make some more changes in the future.
This commit is contained in:
OxygenCobalt
2020-08-24 17:33:02 -06:00
parent 5662725c72
commit 1e4f80b779
10 changed files with 25 additions and 16 deletions
@@ -3,7 +3,6 @@ package org.oxycblt.auxio
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
class MainActivity : AppCompatActivity() {
@@ -11,7 +10,7 @@ class MainActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
// AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
Log.d(this::class.simpleName, "Activity Created.")
}
@@ -3,7 +3,6 @@ package org.oxycblt.auxio.music.processing
import android.app.Application
import android.content.ContentResolver
import android.database.Cursor
import android.graphics.Bitmap
import android.graphics.ImageDecoder
import android.os.Build
import android.provider.MediaStore
@@ -198,12 +197,11 @@ class MusicLoader(private val app: Application) {
// Album art loading during the initial load isn't really practical for a large amount of albums
// Use glide or something
val artUri = id.toAlbumArtURI()
var cover: Bitmap? = null
// Get the album art through either ImageDecoder or MediaStore depending on the
// version.
try {
cover = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
val cover = try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
ImageDecoder.decodeBitmap(
ImageDecoder.createSource(resolver, artUri)
)
@@ -211,7 +209,7 @@ class MusicLoader(private val app: Application) {
MediaStore.Images.Media.getBitmap(resolver, artUri)
}
} catch (noFound: FileNotFoundException) {
cover = null
null
}
albums.add(