Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
Commits
acbbba8c
Commit
acbbba8c
authored
Jul 22, 2019
by
feihuaduo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最后保存的卡组名改为最后保存的卡组绝对路径
parent
2219108c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
+6
-6
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivity3.java
...va/cn/garymb/ygomobile/ui/cards/DeckManagerActivity3.java
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl.java
...cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl.java
+2
-2
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl2.java
...n/garymb/ygomobile/ui/cards/DeckManagerActivityImpl2.java
+2
-2
No files found.
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
View file @
acbbba8c
...
...
@@ -483,16 +483,16 @@ public class AppsSettings {
}
/***
* 获得最后卡组
名
* 获得最后卡组
绝对路径
*/
public
String
getLastDeck
()
{
public
String
getLastDeck
Path
()
{
return
mSharedPreferences
.
getString
(
Constants
.
PREF_LAST_YDK
,
Constants
.
PREF_DEF_LAST_YDK
);
}
/***
* 保存最后卡组
名
* 保存最后卡组
绝对路径
*/
public
void
setLastDeck
(
String
name
)
{
public
void
setLastDeck
Path
(
String
name
)
{
if
(
TextUtils
.
equals
(
name
,
getCurLastDeck
()))
{
//一样
return
;
...
...
@@ -592,7 +592,7 @@ public class AppsSettings {
public
void
saveSettings
(
String
key
,
String
value
)
{
if
(
"lastdeck"
.
equals
(
key
))
{
setLastDeck
(
value
);
setLastDeck
Path
(
value
);
}
else
{
mSharedPreferences
.
putString
(
Constants
.
PREF_START
+
key
,
value
);
}
...
...
@@ -600,7 +600,7 @@ public class AppsSettings {
public
String
getSettings
(
String
key
)
{
if
(
"lastdeck"
.
equals
(
key
))
{
String
val
=
getLastDeck
();
String
val
=
getLastDeck
Path
();
return
val
;
}
return
mSharedPreferences
.
getString
(
Constants
.
PREF_START
+
key
,
null
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivity3.java
View file @
acbbba8c
...
...
@@ -70,7 +70,7 @@ public class DeckManagerActivity3 extends BaseActivity implements OnItemDragList
DialogPlus
dlg
=
DialogPlus
.
show
(
this
,
null
,
getString
(
R
.
string
.
loading
));
VUiKit
.
defer
().
when
(()
->
{
mCardLoader
.
setLimitList
(
mLimitManager
.
getTopLimit
());
File
file
=
new
File
(
mSettings
.
getResourcePath
(),
Constants
.
CORE_DECK_PATH
+
"/"
+
mSettings
.
getLastDeck
()
+
Constants
.
YDK_FILE_EX
);
File
file
=
new
File
(
mSettings
.
getLastDeckPath
()
);
if
(!
TextUtils
.
isEmpty
(
mPreLoad
))
{
file
=
new
File
(
mPreLoad
);
mPreLoad
=
null
;
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl.java
View file @
acbbba8c
...
...
@@ -142,7 +142,7 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
}
else
{
mPreLoadFile
=
null
;
//最后卡组
_file
=
new
File
(
mSettings
.
get
ResourcePath
(),
Constants
.
CORE_DECK_PATH
+
"/"
+
mSettings
.
getLastDeck
()
+
Constants
.
YDK_FILE_EX
);
_file
=
new
File
(
mSettings
.
get
LastDeckPath
()
);
}
init
(
_file
);
EventBus
.
getDefault
().
register
(
this
);
...
...
@@ -275,7 +275,7 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
setActionBarSubTitle
(
name
);
if
(
inDeckDir
(
file
))
{
//deck文件夹里面的,则保存文件
mSettings
.
setLastDeck
(
name
);
mSettings
.
setLastDeck
Path
(
file
.
getAbsolutePath
()
);
}
}
else
{
setActionBarSubTitle
(
getString
(
R
.
string
.
noname
));
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl2.java
View file @
acbbba8c
...
...
@@ -188,7 +188,7 @@ class DeckManagerActivityImpl2 extends BaseActivity implements CardLoader.CallBa
if
(
mLimitManager
.
getCount
()
>
0
)
{
mCardLoader
.
setLimitList
(
mLimitManager
.
getTopLimit
());
}
File
file
=
new
File
(
mSettings
.
get
ResourcePath
(),
Constants
.
CORE_DECK_PATH
+
"/"
+
mSettings
.
getLastDeck
()
+
YDK_FILE_EX
);
File
file
=
new
File
(
mSettings
.
get
LastDeckPath
()
);
if
(!
TextUtils
.
isEmpty
(
mPreLoad
))
{
file
=
new
File
(
mPreLoad
);
mPreLoad
=
null
;
...
...
@@ -361,7 +361,7 @@ class DeckManagerActivityImpl2 extends BaseActivity implements CardLoader.CallBa
String
name
=
IOUtils
.
tirmName
(
file
.
getName
(),
YDK_FILE_EX
);
setActionBarSubTitle
(
name
);
if
(!
noSaveLast
)
{
mSettings
.
setLastDeck
(
name
);
mSettings
.
setLastDeck
Path
(
file
.
getAbsolutePath
()
);
}
}
else
{
setActionBarSubTitle
(
getString
(
R
.
string
.
noname
));
...
...
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