final fixes before update

This commit is contained in:
Finnley Somdahl 2023-10-25 00:35:09 -05:00
parent 63526c6ed3
commit da4d55a9a8
5 changed files with 47 additions and 9 deletions

View file

@ -21,7 +21,7 @@ android {
minSdk 23 minSdk 23
targetSdk 34 targetSdk 34
versionCode ((System.currentTimeMillis() / 60000).toInteger()) versionCode ((System.currentTimeMillis() / 60000).toInteger())
versionName "0.1.2" versionName "0.1.3"
signingConfig signingConfigs.debug signingConfig signingConfigs.debug
} }

View file

@ -2,6 +2,7 @@ package ani.dantotsu.media
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.os.Bundle import android.os.Bundle
import android.util.TypedValue
import android.view.View import android.view.View
import androidx.activity.viewModels import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatActivity
@ -32,7 +33,23 @@ class CalendarActivity : AppCompatActivity() {
binding = ActivityListBinding.inflate(layoutInflater) binding = ActivityListBinding.inflate(layoutInflater)
setContentView(binding.root) setContentView(binding.root)
window.statusBarColor = ContextCompat.getColor(this, R.color.nav_bg) val typedValue = TypedValue()
theme.resolveAttribute(com.google.android.material.R.attr.colorPrimary, typedValue, true)
val primaryColor = typedValue.data
val typedValue2 = TypedValue()
theme.resolveAttribute(com.google.android.material.R.attr.colorOnPrimary, typedValue2, true)
val primaryTextColor = typedValue2.data
val typedValue3 = TypedValue()
theme.resolveAttribute(com.google.android.material.R.attr.colorPrimaryContainer, typedValue3, true)
val secondaryColor = typedValue3.data
window.statusBarColor = primaryColor
window.navigationBarColor = primaryColor
binding.listTabLayout.setBackgroundColor(primaryColor)
binding.listAppBar.setBackgroundColor(primaryColor)
binding.listTitle.setTextColor(primaryTextColor)
binding.listTabLayout.setTabTextColors(primaryTextColor, secondaryColor)
binding.listTabLayout.setSelectedTabIndicatorColor(primaryTextColor)
binding.listTitle.setText(R.string.release_calendar) binding.listTitle.setText(R.string.release_calendar)
binding.listSort.visibility = View.GONE binding.listSort.visibility = View.GONE

View file

@ -2,6 +2,7 @@ package ani.dantotsu.media.user
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.os.Bundle import android.os.Bundle
import android.util.TypedValue
import android.view.View import android.view.View
import androidx.activity.viewModels import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatActivity
@ -31,7 +32,24 @@ class ListActivity : AppCompatActivity() {
binding = ActivityListBinding.inflate(layoutInflater) binding = ActivityListBinding.inflate(layoutInflater)
setContentView(binding.root) setContentView(binding.root)
window.statusBarColor = ContextCompat.getColor(this, R.color.nav_bg) val typedValue = TypedValue()
theme.resolveAttribute(com.google.android.material.R.attr.colorPrimary, typedValue, true)
val primaryColor = typedValue.data
val typedValue2 = TypedValue()
theme.resolveAttribute(com.google.android.material.R.attr.colorOnPrimary, typedValue2, true)
val primaryTextColor = typedValue2.data
val typedValue3 = TypedValue()
theme.resolveAttribute(com.google.android.material.R.attr.colorPrimaryContainer, typedValue3, true)
val secondaryColor = typedValue3.data
window.statusBarColor = primaryColor
window.navigationBarColor = primaryColor
binding.listTabLayout.setBackgroundColor(primaryColor)
binding.listAppBar.setBackgroundColor(primaryColor)
binding.listTitle.setTextColor(primaryTextColor)
binding.listTabLayout.setTabTextColors(primaryTextColor, secondaryColor)
binding.listTabLayout.setSelectedTabIndicatorColor(primaryTextColor)
val anime = intent.getBooleanExtra("anime", true) val anime = intent.getBooleanExtra("anime", true)
binding.listTitle.text = intent.getStringExtra("username") + "'s " + (if (anime) "Anime" else "Manga") + " List" binding.listTitle.text = intent.getStringExtra("username") + "'s " + (if (anime) "Anime" else "Manga") + " List"

View file

@ -14,6 +14,7 @@
android:layout_gravity="center" /> android:layout_gravity="center" />
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.AppBarLayout
android:id="@+id/listAppBar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/colorPrimaryContainer" android:background="?attr/colorPrimaryContainer"

View file

@ -1,12 +1,14 @@
# 0.1.2 # 0.1.3
- **Bugfixes:** - **Bugfixes:**
- Fixes for manga and anime extensions - Fixes for manga and anime extensions
- Auto search is now EVEN MORE likely to find correct series - Fixed softsubs not showing
- Fixed a crash for large manga chapters - Fixed various crashes
- Fixed most manga titles - Fixed manga continue button not showing
- Fixed manga Anilist logging - Fixed calendat/anime list page not following Material You
- probably other stuff I forgor - probably other stuff I forgor
- **New Features:** - **New Features:**
- none - App coloring rework
- Themes! 4 themes added
- Added Extension-specific DNS