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
f8008cbc
Commit
f8008cbc
authored
Dec 06, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrade添加设置
修正布局错误 缩短长按时间
parent
270204a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
+9
-2
mobile/src/main/res/layout/dialog_upgrade.xml
mobile/src/main/res/layout/dialog_upgrade.xml
+1
-1
No files found.
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
View file @
f8008cbc
...
...
@@ -161,7 +161,7 @@ public interface Constants {
/***
* 长按删除
*/
long
LONG_PRESS_DRAG
=
9
00
;
long
LONG_PRESS_DRAG
=
6
00
;
/***
* adb shell am start -n cn.garymb.ygomobile/cn.garymb.ygomobile.ui.home.MainActivity -a ygomobile.intent.action.DECK --es android.intent.extra.TEXT 青眼白龙.ydk
* <p>
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
View file @
f8008cbc
...
...
@@ -493,14 +493,21 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
}
}
public
void
initBugly
(){
public
void
initBugly
()
{
Beta
.
initDelay
=
0
;
Beta
.
showInterruptedStrategy
=
true
;
Beta
.
largeIconId
=
R
.
drawable
.
ic_icon_round
;
Beta
.
defaultBannerId
=
R
.
drawable
.
ic_icon_round
;
Beta
.
strToastYourAreTheLatestVersion
=
this
.
getString
(
R
.
string
.
Already_Lastest
);
Beta
.
strToastCheckingUpgrade
=
this
.
getString
(
R
.
string
.
Checking_Update
);
Beta
.
upgradeDialogLayoutId
=
R
.
layout
.
dialog_upgrade
;
ApplicationInfo
appInfo
=
null
;
try
{
appInfo
=
this
.
getPackageManager
().
getApplicationInfo
(
getPackageName
(),
PackageManager
.
GET_META_DATA
);
}
catch
(
PackageManager
.
NameNotFoundException
e
)
{
e
.
printStackTrace
();
}
String
msg
=
appInfo
.
metaData
.
getString
(
"BUGLY_APPID"
);
String
msg
=
appInfo
.
metaData
.
getString
(
"BUGLY_APPID"
);
Bugly
.
init
(
this
,
msg
,
true
);
}
...
...
mobile/src/main/res/layout/dialog_upgrade.xml
View file @
f8008cbc
...
...
@@ -38,7 +38,7 @@
android:text=
"Feature"
android:textColor=
"@color/white"
android:textSize=
"15dp"
android:layout_below=
"@id/
tv_title
"
android:layout_below=
"@id/
iv_upgrade_banner
"
android:tag=
"beta_upgrade_feature"
/>
...
...
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