File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
java/org/toni/customfetch_android Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ class CheckUpdateFragment : Fragment() {
108
108
CoroutineScope (Dispatchers .Main ).launch {
109
109
val json = JSONParser ().getJSONFromUrl(" https://api.github.com/repos/Toni500github/customfetch-android-app/releases/latest" )
110
110
try {
111
- val release = json?.getString(" tag_name" ) ? : " "
111
+ val release = json?.getString(" tag_name" ) ? : throw IllegalArgumentException ()
112
112
val semver = if (release[0 ] == ' v' ) SemVer .parse(release.substring(1 )) else SemVer .parse(release)
113
113
if (semver < SemVer .parse(BuildConfig .VERSION_NAME )) {
114
114
binding.titleResult.setTextColor(Color .GREEN )
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<resources >
3
- <color name =" background" >#FF2A2A2A </color >
4
- <color name =" buttonBg" >#3D3D3D </color >
5
- <color name =" reverseButtonBg" >#5A5A5A </color >
6
- <color name =" toolBar" >#4F4F4F </color >
7
- <color name =" text" >#FFFFFF </color >
8
- <color name =" subText" >#BBBBBB </color >
3
+ <color name =" background" >#1d1c22 </color >
4
+ <color name =" buttonBg" >#3a3844 </color >
5
+ <color name =" reverseButtonBg" >#b2afc4 </color >
6
+ <color name =" toolBar" >#747088 </color >
7
+ <color name =" text" >#bdbacc </color >
8
+ <color name =" subText" >#d3d1dd </color >
9
9
</resources >
You can’t perform that action at this time.
0 commit comments