Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile-Cn-Ko-En
Commits
868cd66a
Commit
868cd66a
authored
Sep 03, 2024
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本号判断改为文本比较大小
parent
0ca0f295
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
+0
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/settings/SettingFragment.java
...java/cn/garymb/ygomobile/ui/settings/SettingFragment.java
+1
-1
No files found.
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
View file @
868cd66a
...
...
@@ -388,7 +388,6 @@ public class AppsSettings {
*/
public
int
getDataLanguage
()
{
try
{
Log
.
i
(
BuildConfig
.
VERSION_NAME
,
mSharedPreferences
.
getString
(
Constants
.
PREF_DATA_LANGUAGE
,
""
+
PREF_DEF_DATA_LANGUAGE
));
return
Integer
.
valueOf
(
mSharedPreferences
.
getString
(
Constants
.
PREF_DATA_LANGUAGE
,
""
+
PREF_DEF_DATA_LANGUAGE
));
}
catch
(
Exception
e
)
{
return
PREF_DEF_DATA_LANGUAGE
;
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
View file @
868cd66a
...
...
@@ -190,7 +190,7 @@ public abstract class HomeActivity extends BaseActivity implements BottomNavigat
if
(!
TextUtils
.
isEmpty
(
Cache_pre_release_code
))
{
arrangeCodeList
(
Cache_pre_release_code
);
//转换成两个数组
}
if
(
!
Version
.
equals
(
BuildConfig
.
VERSION_NAME
)
&&
!
TextUtils
.
isEmpty
(
Version
)
&&
!
TextUtils
.
isEmpty
(
Cache_link
))
{
if
(
Version
.
compareTo
(
BuildConfig
.
VERSION_NAME
)
>
0
&&
!
TextUtils
.
isEmpty
(
Version
)
&&
!
TextUtils
.
isEmpty
(
Cache_link
))
{
DialogPlus
dialog
=
new
DialogPlus
(
getActivity
());
dialog
.
setMessage
(
R
.
string
.
Found_Update
);
dialog
.
setLeftButtonText
(
R
.
string
.
download_home
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/settings/SettingFragment.java
View file @
868cd66a
...
...
@@ -269,7 +269,7 @@ public class SettingFragment extends PreferenceFragmentPlus {
if
(!
TextUtils
.
isEmpty
(
Cache_pre_release_code
))
{
arrangeCodeList
(
Cache_pre_release_code
);
//转换成两个数组
}
if
(
!
Version
.
equals
(
BuildConfig
.
VERSION_NAME
)
&&
!
TextUtils
.
isEmpty
(
Version
)
&&
!
TextUtils
.
isEmpty
(
Cache_link
))
{
if
(
Version
.
compareTo
(
BuildConfig
.
VERSION_NAME
)
>
0
&&
!
TextUtils
.
isEmpty
(
Version
)
&&
!
TextUtils
.
isEmpty
(
Cache_link
))
{
DialogPlus
dialog
=
new
DialogPlus
(
getActivity
());
dialog
.
setMessage
(
R
.
string
.
Found_Update
);
dialog
.
setLeftButtonText
(
R
.
string
.
download_home
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment