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
a7c03bd3
Commit
a7c03bd3
authored
Jul 13, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
禁用左右滑动翻页,每个连接存活时间改为20秒
parent
7f38818c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckManageDialog.java
...rymb/ygomobile/ui/cards/deck_square/DeckManageDialog.java
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
...ymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
+2
-2
mobile/src/main/java/cn/garymb/ygomobile/utils/OkhttpUtil.java
...e/src/main/java/cn/garymb/ygomobile/utils/OkhttpUtil.java
+1
-1
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckManageDialog.java
View file @
a7c03bd3
...
@@ -51,7 +51,7 @@ public class DeckManageDialog extends DialogFragment implements YGODeckDialogUti
...
@@ -51,7 +51,7 @@ public class DeckManageDialog extends DialogFragment implements YGODeckDialogUti
ViewPager2
viewPager
=
view
.
findViewById
(
R
.
id
.
deck_view_pager
);
ViewPager2
viewPager
=
view
.
findViewById
(
R
.
id
.
deck_view_pager
);
TabLayout
tabLayout
=
view
.
findViewById
(
R
.
id
.
deck_manager_tab_layout
);
TabLayout
tabLayout
=
view
.
findViewById
(
R
.
id
.
deck_manager_tab_layout
);
viewPager
.
setUserInputEnabled
(
false
);
// Setup adapter
// Setup adapter
ViewPagerAdapter
adapter
=
new
ViewPagerAdapter
(
this
,
mOnDeckMenuListener
,
this
);
ViewPagerAdapter
adapter
=
new
ViewPagerAdapter
(
this
,
mOnDeckMenuListener
,
this
);
viewPager
.
setAdapter
(
adapter
);
viewPager
.
setAdapter
(
adapter
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
View file @
a7c03bd3
package
cn.garymb.ygomobile.ui.cards.deck_square
;
package
cn.garymb.ygomobile.ui.cards.deck_square
;
import
android.util.Log
;
import
android.widget.Toast
;
import
android.widget.Toast
;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
...
@@ -16,6 +15,7 @@ import cn.garymb.ygomobile.AppsSettings;
...
@@ -16,6 +15,7 @@ import cn.garymb.ygomobile.AppsSettings;
import
cn.garymb.ygomobile.Constants
;
import
cn.garymb.ygomobile.Constants
;
import
cn.garymb.ygomobile.bean.DeckType
;
import
cn.garymb.ygomobile.bean.DeckType
;
import
cn.garymb.ygomobile.bean.events.DeckFile
;
import
cn.garymb.ygomobile.bean.events.DeckFile
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.ui.cards.DeckManagerFragment
;
import
cn.garymb.ygomobile.ui.cards.DeckManagerFragment
;
import
cn.garymb.ygomobile.ui.cards.deck_square.api_response.BasicResponse
;
import
cn.garymb.ygomobile.ui.cards.deck_square.api_response.BasicResponse
;
import
cn.garymb.ygomobile.ui.cards.deck_square.api_response.DeckIdResponse
;
import
cn.garymb.ygomobile.ui.cards.deck_square.api_response.DeckIdResponse
;
...
@@ -72,7 +72,7 @@ public class DeckSquareApiUtil {
...
@@ -72,7 +72,7 @@ public class DeckSquareApiUtil {
Integer
serverUserId
=
SharedPreferenceUtil
.
getServerUserId
();
Integer
serverUserId
=
SharedPreferenceUtil
.
getServerUserId
();
if
(
serverToken
==
null
||
serverUserId
==
-
1
)
{
if
(
serverToken
==
null
||
serverUserId
==
-
1
)
{
YGOUtil
.
showTextToast
(
"Please login first!"
);
YGOUtil
.
showTextToast
(
R
.
string
.
login_mycard
);
return
null
;
return
null
;
}
}
return
new
LoginToken
(
serverUserId
,
serverToken
);
return
new
LoginToken
(
serverUserId
,
serverToken
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/utils/OkhttpUtil.java
View file @
a7c03bd3
...
@@ -29,7 +29,7 @@ public class OkhttpUtil {
...
@@ -29,7 +29,7 @@ public class OkhttpUtil {
.
readTimeout
(
30
,
TimeUnit
.
SECONDS
)
.
readTimeout
(
30
,
TimeUnit
.
SECONDS
)
.
writeTimeout
(
30
,
TimeUnit
.
SECONDS
)
.
writeTimeout
(
30
,
TimeUnit
.
SECONDS
)
// keep-alive and connection pool defaults
// keep-alive and connection pool defaults
.
connectionPool
(
new
ConnectionPool
(
2
,
4
0
,
TimeUnit
.
SECONDS
))
.
connectionPool
(
new
ConnectionPool
(
2
,
2
0
,
TimeUnit
.
SECONDS
))
.
build
();
.
build
();
...
...
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