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
41899a59
Commit
41899a59
authored
Oct 24, 2019
by
kenan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opt code
parent
8ffa21a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
+7
-3
mobile/src/main/java/cn/garymb/ygomobile/LocalConfig.java
mobile/src/main/java/cn/garymb/ygomobile/LocalConfig.java
+0
-2
No files found.
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
View file @
41899a59
...
@@ -277,7 +277,11 @@ public class AppsSettings {
...
@@ -277,7 +277,11 @@ public class AppsSettings {
*/
*/
public
int
getCardQuality
()
{
public
int
getCardQuality
()
{
try
{
try
{
return
Integer
.
valueOf
(
mSharedPreferences
.
getString
(
Constants
.
PREF_IMAGE_QUALITY
,
""
+
Constants
.
PREF_DEF_IMAGE_QUALITY
));
String
val
=
mSharedPreferences
.
getString
(
Constants
.
PREF_IMAGE_QUALITY
,
""
+
Constants
.
PREF_DEF_IMAGE_QUALITY
);
if
(
val
==
null
){
return
Constants
.
PREF_DEF_IMAGE_QUALITY
;
}
return
Integer
.
valueOf
(
val
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
Constants
.
PREF_DEF_IMAGE_QUALITY
;
return
Constants
.
PREF_DEF_IMAGE_QUALITY
;
}
}
...
@@ -328,8 +332,8 @@ public class AppsSettings {
...
@@ -328,8 +332,8 @@ public class AppsSettings {
return
mSharedPreferences
.
getBoolean
(
PREF_LOCK_SCREEN
,
Constants
.
PREF_DEF_LOCK_SCREEN
);
return
mSharedPreferences
.
getBoolean
(
PREF_LOCK_SCREEN
,
Constants
.
PREF_DEF_LOCK_SCREEN
);
}
}
public
void
setLockS
reenOrientation
(
boolean
lockS
reenOrientation
)
{
public
void
setLockS
creenOrientation
(
boolean
lockSc
reenOrientation
)
{
mSharedPreferences
.
edit
().
putBoolean
(
PREF_LOCK_SCREEN
,
lockSreenOrientation
).
apply
();
mSharedPreferences
.
edit
().
putBoolean
(
PREF_LOCK_SCREEN
,
lockS
c
reenOrientation
).
apply
();
}
}
/***
/***
...
...
mobile/src/main/java/cn/garymb/ygomobile/LocalConfig.java
View file @
41899a59
...
@@ -3,8 +3,6 @@ package cn.garymb.ygomobile;
...
@@ -3,8 +3,6 @@ package cn.garymb.ygomobile;
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.SharedPreferences
;
import
android.content.SharedPreferences
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
java.io.File
;
import
java.io.File
;
...
...
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