Commit 35754964 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 4198c514
......@@ -36,8 +36,6 @@ android {
}
sourceSets { main { jniLibs.srcDirs = ['libs'] } }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
......
......@@ -209,6 +209,9 @@
<activity
android:name=".ui.activitys.XmlyPlayActivity"
android:screenOrientation="portrait" />
<activity
android:name=".ui.activitys.XmlyActivity"
android:screenOrientation="portrait" />
<service
android:name=".service.UpdateService"
......
......@@ -62,21 +62,21 @@ public class MintsApplication extends MultiDexApplication {
// 判断应用是否在前台
ForegroundOrBackground.init(this);
ConstantsOpenSdk.isDebug = true;
XMediaPlayerConstants.isDebug = true;
XmPlayerConfig.getInstance(this).setDefualtNotificationNickNameAndInfo("开心麻花", "开心开心,无敌开心");
if (BaseUtil.isMainProcess(this)) {
// 喜马拉雅
CommonRequest instanse = CommonRequest.getInstanse();
String mAppSecret = "db3cb9e3ec5943f4987e78ddc5aec728";
String mAppKey = "ff71a11162f20808f9f349452dd9e141";
instanse.setAppkey(mAppKey);
instanse.setAppsecret(mAppSecret);
instanse.setPackid("com.mints.goodmoney");
instanse.setUseHttps(false);
instanse.init(this, mAppSecret);
}
// ConstantsOpenSdk.isDebug = true;
// XMediaPlayerConstants.isDebug = true;
// XmPlayerConfig.getInstance(this).setDefualtNotificationNickNameAndInfo("开心麻花", "开心开心,无敌开心");
//
// if (BaseUtil.isMainProcess(this)) {
// // 喜马拉雅
// CommonRequest instanse = CommonRequest.getInstanse();
// String mAppSecret = "db3cb9e3ec5943f4987e78ddc5aec728";
// String mAppKey = "ff71a11162f20808f9f349452dd9e141";
// instanse.setAppkey(mAppKey);
// instanse.setAppsecret(mAppSecret);
// instanse.setPackid("com.mints.goodmoney");
// instanse.setUseHttps(false);
// instanse.init(this, mAppSecret);
// }
// 三方配置
thirdConfig();
......@@ -161,7 +161,7 @@ public class MintsApplication extends MultiDexApplication {
RsNewsManager.INSTANCE.initX5Environment(this);
// 喜马拉雅
// initXmly();
initXmly();
}
private void initXmly() {
......
......@@ -129,7 +129,6 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
fun selectVedio() {
// vpFragmentMoney.currentItem = 0
if (mainFragment == null) {
mainFragment = MainFragment()
}
......@@ -140,7 +139,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
// vpFragmentMoney.currentItem = 1
if (bookStoreFragment == null) {
bookStoreFragment = MyZhangyueFragment()
bookStoreFragment = ZhangyueFragment()
}
addOrShowFragment(childFragmentManager, bookStoreFragment!!, FRAGMENT_TAG_BOOKSTORE)
}
......
......@@ -409,6 +409,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
mainMyAdapter?.notifyDataSetChanged()
}
// 每日任务
override fun onItemChildClick(view: View?, position: Int) {
if (AntiShake.check(view?.id)) return
......@@ -639,6 +640,7 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
}
}
// 热门活动
override fun onItemClick(parent: AdapterView<*>, view: View, position: Int, id: Long) {
if (hotList!!.isNotEmpty()) {
val hotBean: BannerBean.ListBean = hotList!![position]
......@@ -658,8 +660,8 @@ class MyFragment : BaseFragment(), MyView, OnItemChildClickListener, OnRefreshLi
readyGo(EraseActivity::class.java)
}
Constant.HOT_ACTIVITY_LIEBAO -> {
readyGo(LiebaoGameActivity::class.java)
// readyGo(XmlyActivity::class.java)
// readyGo(LiebaoGameActivity::class.java)
readyGo(XmlyActivity::class.java)
// readyGo(XmlyAwardActivity::class.java)
}
Constant.HOT_ACTIVITY_MORNINGCLOCK -> {
......
......@@ -42,6 +42,12 @@
android:layout_height="wrap_content"
android:text="播放专辑内容" />
<Button
android:id="@+id/btn5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="播放音频" />
</LinearLayout>
</com.mints.goodmoney.ui.widgets.ElasticScrollView>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment