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
8d3d9015
Commit
8d3d9015
authored
Sep 23, 2022
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
禁用卡包展示下卡组修改与保存
parent
a07fb9a5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
10 deletions
+13
-10
mobile/src/main/java/cn/garymb/ygomobile/ui/adapters/DeckListAdapter.java
...java/cn/garymb/ygomobile/ui/adapters/DeckListAdapter.java
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
...ava/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
+9
-6
mobile/src/main/res/values-ko/strings.xml
mobile/src/main/res/values-ko/strings.xml
+1
-1
mobile/src/main/res/values-zh/strings.xml
mobile/src/main/res/values-zh/strings.xml
+1
-1
mobile/src/main/res/values/strings.xml
mobile/src/main/res/values/strings.xml
+1
-1
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/adapters/DeckListAdapter.java
View file @
8d3d9015
...
...
@@ -147,7 +147,7 @@ public class DeckListAdapter<T extends TextSelect> extends BaseQuickAdapter<T, D
}
}
}
else
{
holder
.
deck_info
.
setVisibility
(
View
.
INVISIBL
E
);
holder
.
deck_info
.
setVisibility
(
View
.
GON
E
);
}
//多选
if
(
isManySelect
)
{
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
View file @
8d3d9015
...
...
@@ -747,8 +747,9 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
if
(
mDeckAdapater
.
getYdkFile
()
==
null
)
{
inputDeckName
(
null
,
null
,
true
);
}
else
{
if
(
TextUtils
.
equals
(
mDeckAdapater
.
getYdkFile
().
getParent
(),
mSettings
.
getAiDeckDir
()))
{
Toast
.
makeText
(
getContext
(),
R
.
string
.
donot_editor_bot_Deck
,
Toast
.
LENGTH_SHORT
).
show
();
if
(
TextUtils
.
equals
(
mDeckAdapater
.
getYdkFile
().
getParent
(),
mSettings
.
getAiDeckDir
())
||
TextUtils
.
equals
(
mDeckAdapater
.
getYdkFile
().
getParent
(),
mSettings
.
getPackDeckDir
()))
{
Toast
.
makeText
(
getContext
(),
R
.
string
.
donot_edit_Deck
,
Toast
.
LENGTH_SHORT
).
show
();
}
else
{
save
(
mDeckAdapater
.
getYdkFile
());
}
...
...
@@ -760,8 +761,9 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
Toast
.
makeText
(
getContext
(),
R
.
string
.
unable_to_edit_empty_deck
,
Toast
.
LENGTH_SHORT
).
show
();
return
true
;
}
if
(
TextUtils
.
equals
(
mDeckAdapater
.
getYdkFile
().
getParent
(),
mSettings
.
getAiDeckDir
()))
{
Toast
.
makeText
(
getContext
(),
R
.
string
.
donot_editor_bot_Deck
,
Toast
.
LENGTH_SHORT
).
show
();
if
(
TextUtils
.
equals
(
mDeckAdapater
.
getYdkFile
().
getParent
(),
mSettings
.
getAiDeckDir
())
||
TextUtils
.
equals
(
mDeckAdapater
.
getYdkFile
().
getParent
(),
mSettings
.
getPackDeckDir
()))
{
Toast
.
makeText
(
getContext
(),
R
.
string
.
donot_edit_Deck
,
Toast
.
LENGTH_SHORT
).
show
();
}
else
{
inputDeckName
(
mDeckAdapater
.
getYdkFile
(),
mDeckAdapater
.
getYdkFile
().
getParent
(),
false
);
}
...
...
@@ -787,8 +789,9 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
Toast
.
makeText
(
getContext
(),
R
.
string
.
unable_to_edit_empty_deck
,
Toast
.
LENGTH_SHORT
).
show
();
return
true
;
}
if
(
TextUtils
.
equals
(
mDeckAdapater
.
getYdkFile
().
getParent
(),
mSettings
.
getAiDeckDir
()))
{
Toast
.
makeText
(
getContext
(),
R
.
string
.
donot_editor_bot_Deck
,
Toast
.
LENGTH_SHORT
).
show
();
if
(
TextUtils
.
equals
(
mDeckAdapater
.
getYdkFile
().
getParent
(),
mSettings
.
getAiDeckDir
())
||
TextUtils
.
equals
(
mDeckAdapater
.
getYdkFile
().
getParent
(),
mSettings
.
getPackDeckDir
()))
{
Toast
.
makeText
(
getContext
(),
R
.
string
.
donot_edit_Deck
,
Toast
.
LENGTH_SHORT
).
show
();
}
else
{
builder
.
setTitle
(
R
.
string
.
question
);
builder
.
setMessage
(
R
.
string
.
question_delete_deck
);
...
...
mobile/src/main/res/values-ko/strings.xml
View file @
8d3d9015
...
...
@@ -279,7 +279,7 @@
<string
name=
"delete_confirm"
>
카테고리를 삭제하겠습니까? 카테고리에 있는 덱들도 삭제됩니다.
</string>
<string
name=
"no_deck_is_selected"
>
덱이 선택되지 않았습니다.
</string>
<string
name=
"done"
>
완료!
</string>
<string
name=
"donot_edit
or_bot_Deck"
>
AI 덱을 변경하지 말아 주세요. 그러면 프로그램이 제대로 작동하지 않을 수 있습니다
.
</string>
<string
name=
"donot_edit
_Deck"
>
이 분류의 카드 그룹을 변경하지 마십시오
.
</string>
<string
name=
"unable_to_edit_empty_deck"
>
비어있는 덱을 사용할 수 없습니다.
</string>
<string
name=
"create_new_failed"
>
생성 실패
</string>
<string
name=
"about_pref_settings_keep_scale"
>
원래 해상도 표시
</string>
...
...
mobile/src/main/res/values-zh/strings.xml
View file @
8d3d9015
...
...
@@ -279,7 +279,7 @@
<string
name=
"delete_confirm"
>
确定删除该分类吗,分类下的卡组也将全部被删除
</string>
<string
name=
"no_deck_is_selected"
>
未选中卡组
</string>
<string
name=
"done"
>
完成!
</string>
<string
name=
"donot_edit
or_bot_Deck"
>
请不要更改/删除AI卡组否则会导致人机模式无法正常使用
</string>
<string
name=
"donot_edit
_Deck"
>
请勿更改此分类下的卡组
</string>
<string
name=
"unable_to_edit_empty_deck"
>
不可操作空卡组
</string>
<string
name=
"create_new_failed"
>
创建失败
</string>
<string
name=
"about_pref_settings_keep_scale"
>
开启原始比例的游戏画面
</string>
...
...
mobile/src/main/res/values/strings.xml
View file @
8d3d9015
...
...
@@ -277,7 +277,7 @@
<string
name=
"delete_confirm"
>
will delete all deck of this Category
</string>
<string
name=
"no_deck_is_selected"
>
no_deck_is_selected
</string>
<string
name=
"done"
>
done\!
</string>
<string
name=
"donot_edit
or_bot_Deck"
>
Pls Donot edit/remove AI Deck, if you do\nAI mode wont work properl
y
</string>
<string
name=
"donot_edit
_Deck"
>
Do not change decks of this categor
y
</string>
<string
name=
"code_share"
>
Code Share
</string>
<string
name=
"screenshoot"
>
Share Art
</string>
<string
name=
"ydk_share"
>
File sahre
</string>
...
...
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