Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_highgold
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_highgold
Commits
4b78a30a
Commit
4b78a30a
authored
May 20, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
准备接入珊瑚sdk
parent
b1ff1174
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
26 deletions
+29
-26
build.gradle
highgold/app/build.gradle
+2
-2
MyFragment.java
.../main/java/com/mints/highgold/ui/fragment/MyFragment.java
+27
-24
No files found.
highgold/app/build.gradle
View file @
4b78a30a
...
...
@@ -10,8 +10,8 @@ android {
applicationId
"com.mints.highgold"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
8
versionName
"1.0.
7
"
versionCode
9
versionName
"1.0.
8
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
highgold/app/src/main/java/com/mints/highgold/ui/fragment/MyFragment.java
View file @
4b78a30a
package
com
.
mints
.
highgold
.
ui
.
fragment
;
import
android.Manifest
;
import
android.content.ClipData
;
import
android.content.ClipboardManager
;
import
android.content.Context
;
...
...
@@ -12,6 +13,7 @@ import android.widget.GridView;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
com.component.dly.xzzq_ywsdk.YwSDK_WebActivity
;
import
com.mints.highgold.BuildConfig
;
import
com.mints.highgold.R
;
import
com.mints.highgold.common.AppConfig
;
...
...
@@ -49,6 +51,7 @@ import com.mints.library.utils.ConstantUtil;
import
com.mints.library.utils.GlideUtils
;
import
com.mints.library.utils.nodoubleclick.AntiShake
;
import
com.scwang.smartrefresh.layout.SmartRefreshLayout
;
import
com.tbruyelle.rxpermissions.RxPermissions
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
...
...
@@ -268,31 +271,31 @@ public class MyFragment extends BaseFragment
// 自有界面
switch
(
hotTourl
)
{
case
Constant
.
HOT_ACTIVITY_YWHZ
:
// if (!userManager.userIsLogin()) {
// readyGo(WxLoginActivity.class);
// return;
// }
//
// new RxPermissions(getActivity())
// .request(Manifest.permission.READ_PHONE_STATE, Manifest.permission.READ_EXTERNAL_STORAGE)
// .subscribe(granted -> {
// if (granted) {
// try {
// YwSDK_WebActivity.Companion.open(getActivity());
//// toggleIsBack2Left();
// } catch (Exception e) {
// e.printStackTrace();
// showToast("暂不支持该版本");
// }
// } else {
// showMissingPermissionDialog("设备、储存");
// }
// });
boolean
main
=
getActivity
()
instanceof
MainActivity
;
if
(
main
)
{
MainActivity
activity
=
(
MainActivity
)
getActivity
();
activity
.
clickTab2Layout
();
if
(!
userManager
.
userIsLogin
())
{
readyGo
(
WxLoginActivity
.
class
);
return
;
}
new
RxPermissions
(
getActivity
())
.
request
(
Manifest
.
permission
.
READ_PHONE_STATE
,
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
)
.
subscribe
(
granted
->
{
if
(
granted
)
{
try
{
YwSDK_WebActivity
.
Companion
.
open
(
getActivity
());
// toggleIsBack2Left();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
showToast
(
"暂不支持该版本"
);
}
}
else
{
showMissingPermissionDialog
(
"设备、储存"
);
}
});
// boolean main = getActivity() instanceof MainActivity;
// if (main) {
// MainActivity activity = (MainActivity) getActivity();
// activity.clickTab2Layout();
// }
break
;
case
Constant
.
HOT_ACTIVITY_CHB
:
readyGo
(
RedboxActivity
.
class
);
...
...
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