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
fa7896cd
Commit
fa7896cd
authored
Apr 22, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安卓卡组名排序
ko strings.conf
parent
1f1add7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
9 deletions
+26
-9
mobile/assets_ko/data/conf/strings.conf
mobile/assets_ko/data/conf/strings.conf
+4
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl.java
...cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl.java
+22
-8
No files found.
mobile/assets_ko/data/conf/strings.conf
View file @
fa7896cd
...
...
@@ -944,4 +944,7 @@
!
setname
0
x127
무한기동
!
setname
0
x128
위치크래프트
!
setname
0
x129
주안
!
setname
0
x12a
엔디미온
\ No newline at end of file
!
setname
0
x12a
엔디미온
!
setname
0
x12b
마린세스
!
setname
0
x12c
천위
!
setname
0
x12d
시무룩그
\ No newline at end of file
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerActivityImpl.java
View file @
fa7896cd
...
...
@@ -37,8 +37,11 @@ import org.greenrobot.eventbus.ThreadMode;
import
java.io.File
;
import
java.io.IOException
;
import
java.text.Collator
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.Locale
;
...
...
@@ -216,7 +219,7 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
//endregion
//region init
private
void
init
(
File
ydk
){
private
void
init
(
File
ydk
)
{
DialogPlus
dlg
=
DialogPlus
.
show
(
this
,
null
,
getString
(
R
.
string
.
loading
));
VUiKit
.
defer
().
when
(()
->
{
DataManager
.
get
().
load
(
false
);
...
...
@@ -256,10 +259,11 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
/**
* 设置当前卡组
*
* @param deckInfo
*/
private
void
setCurDeck
(
DeckInfo
deckInfo
)
{
if
(
deckInfo
==
null
)
{
if
(
deckInfo
==
null
)
{
deckInfo
=
new
DeckInfo
();
}
File
file
=
deckInfo
.
source
;
...
...
@@ -331,7 +335,7 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
return
;
}
showDeckCard
(
view
,
pos
);
}
}
@Override
public
void
onItemLongClick
(
View
view
,
int
pos
)
{
...
...
@@ -580,10 +584,10 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
shareDeck
();
break
;
case
R
.
id
.
action_save
:
if
(
mPreLoadFile
!=
null
&&
mPreLoadFile
==
mDeckAdapater
.
getYdkFile
())
{
if
(
mPreLoadFile
!=
null
&&
mPreLoadFile
==
mDeckAdapater
.
getYdkFile
())
{
//需要保存到deck文件夹
inputDeckName
(
mPreLoadFile
,
true
);
}
else
{
}
else
{
if
(
mDeckAdapater
.
getYdkFile
()
==
null
)
{
inputDeckName
(
null
,
true
);
}
else
{
...
...
@@ -645,7 +649,7 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
builder
.
setMessageGravity
(
Gravity
.
CENTER_HORIZONTAL
);
builder
.
setLeftButtonListener
((
dlg
,
rs
)
->
{
File
ydk
=
mDeckAdapater
.
getYdkFile
();
if
(
ydk
==
null
)
{
if
(
ydk
==
null
)
{
return
;
}
FileUtils
.
deleteFile
(
ydk
);
...
...
@@ -767,6 +771,16 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
List
<
File
>
files
=
getYdkFiles
();
List
<
SimpleSpinnerItem
>
items
=
new
ArrayList
<>();
String
name
=
curYdk
!=
null
?
curYdk
.
getName
()
:
null
;
Collections
.
sort
(
files
,
new
Comparator
<
File
>()
{
@Override
public
int
compare
(
File
ydk1
,
File
ydk2
)
{
if
(
ydk1
.
isDirectory
()
&&
ydk2
.
isFile
())
return
-
1
;
if
(
ydk1
.
isFile
()
&&
ydk2
.
isDirectory
())
return
1
;
return
ydk1
.
getName
().
compareTo
(
ydk2
.
getName
());
}
});
int
index
=
-
1
;
if
(
files
!=
null
)
{
int
i
=
0
;
...
...
@@ -867,7 +881,7 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
editText
.
setGravity
(
Gravity
.
TOP
|
Gravity
.
LEFT
);
editText
.
setInputType
(
InputType
.
TYPE_TEXT_FLAG_NO_SUGGESTIONS
);
editText
.
setSingleLine
();
if
(
oldYdk
!=
null
)
{
if
(
oldYdk
!=
null
)
{
editText
.
setText
(
oldYdk
.
getName
());
}
builder
.
setContentView
(
editText
);
...
...
@@ -893,7 +907,7 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
loadDeckFromFile
(
ydk
);
}
}
else
{
if
(
oldYdk
==
mPreLoadFile
)
{
if
(
oldYdk
==
mPreLoadFile
)
{
mPreLoadFile
=
null
;
}
dlg
.
dismiss
();
...
...
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