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
19b96ccc
Commit
19b96ccc
authored
Oct 05, 2021
by
feihuaduo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复第二次才能从外部打开卡组文件的问题
卡查不区分大小写
parent
4b28dcdc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
mobile/build.gradle
mobile/build.gradle
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/GameUriManager.java
mobile/src/main/java/cn/garymb/ygomobile/GameUriManager.java
+3
-1
mobile/src/main/java/ocgcore/data/Card.java
mobile/src/main/java/ocgcore/data/Card.java
+4
-2
mobile/src/main/res/xml/shortcuts.xml
mobile/src/main/res/xml/shortcuts.xml
+1
-1
No files found.
mobile/build.gradle
View file @
19b96ccc
...
@@ -39,7 +39,7 @@ android {
...
@@ -39,7 +39,7 @@ android {
}
}
buildTypes
{
buildTypes
{
debug
{
debug
{
debuggable
fals
e
debuggable
tru
e
buildConfigField
'boolean'
,
'DEBUG_MODE'
,
'true'
buildConfigField
'boolean'
,
'DEBUG_MODE'
,
'true'
}
}
release
{
release
{
...
...
mobile/src/main/java/cn/garymb/ygomobile/GameUriManager.java
View file @
19b96ccc
...
@@ -113,7 +113,8 @@ public class GameUriManager {
...
@@ -113,7 +113,8 @@ public class GameUriManager {
}
}
return
new
File
(
dir
,
"tmp_"
+
System
.
currentTimeMillis
()
+
".ydk"
);
return
new
File
(
dir
,
"tmp_"
+
System
.
currentTimeMillis
()
+
".ydk"
);
}
else
{
}
else
{
IOUtils
.
createFolder
(
dir
);
IOUtils
.
createFolder
(
dir
);
file
=
new
File
(
dir
,
name
+
".ydk"
);
}
}
return
file
;
return
file
;
}
}
...
@@ -196,6 +197,7 @@ public class GameUriManager {
...
@@ -196,6 +197,7 @@ public class GameUriManager {
}
}
private
void
doUri
(
Uri
uri
)
{
private
void
doUri
(
Uri
uri
)
{
Intent
startSeting
=
new
Intent
(
activity
,
SettingsActivity
.
class
);
Intent
startSeting
=
new
Intent
(
activity
,
SettingsActivity
.
class
);
if
(
"file"
.
equals
(
uri
.
getScheme
())
||
"content"
.
equals
(
uri
.
getScheme
()))
{
if
(
"file"
.
equals
(
uri
.
getScheme
())
||
"content"
.
equals
(
uri
.
getScheme
()))
{
File
file
=
toLocalFile
(
uri
);
File
file
=
toLocalFile
(
uri
);
...
...
mobile/src/main/java/ocgcore/data/Card.java
View file @
19b96ccc
...
@@ -7,6 +7,8 @@ import android.text.TextUtils;
...
@@ -7,6 +7,8 @@ import android.text.TextUtils;
import
androidx.annotation.NonNull
;
import
androidx.annotation.NonNull
;
import
java.util.Locale
;
import
ocgcore.enums.CardType
;
import
ocgcore.enums.CardType
;
public
class
Card
extends
CardData
implements
Parcelable
{
public
class
Card
extends
CardData
implements
Parcelable
{
...
@@ -153,11 +155,11 @@ public class Card extends CardData implements Parcelable {
...
@@ -153,11 +155,11 @@ public class Card extends CardData implements Parcelable {
}
}
public
boolean
containsName
(
String
key
){
public
boolean
containsName
(
String
key
){
return
Name
!=
null
&&
Name
.
contains
(
key
);
return
Name
!=
null
&&
Name
.
toLowerCase
(
Locale
.
US
).
contains
(
key
.
toLowerCase
(
Locale
.
US
)
);
}
}
public
boolean
containsDesc
(
String
key
){
public
boolean
containsDesc
(
String
key
){
return
Desc
!=
null
&&
Desc
.
contains
(
key
);
return
Desc
!=
null
&&
Desc
.
toLowerCase
(
Locale
.
US
).
contains
(
key
.
toLowerCase
(
Locale
.
US
)
);
}
}
/**
/**
...
...
mobile/src/main/res/xml/shortcuts.xml
View file @
19b96ccc
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<intent
<intent
android:action=
"android.intent.action.VIEW"
android:action=
"android.intent.action.VIEW"
android:targetClass=
"cn.garymb.ygomobile.ui.cards.CardSearchAc
i
tivity"
android:targetClass=
"cn.garymb.ygomobile.ui.cards.CardSearchActivity"
android:targetPackage=
"cn.garymb.ygomobile"
/>
android:targetPackage=
"cn.garymb.ygomobile"
/>
<categories
android:name=
"android.shortcut.conversation"
/>
<categories
android:name=
"android.shortcut.conversation"
/>
</shortcut>
</shortcut>
...
...
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