Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
56a54c9a
Commit
56a54c9a
authored
Jan 23, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
c375752b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
25 deletions
+28
-25
build.gradle
GoodMoney/app/build.gradle
+2
-4
AndroidManifest.xml
GoodMoney/app/src/main/AndroidManifest.xml
+6
-3
FloatingView.java
...in/java/com/mints/goodmoney/call/widget/FloatingView.java
+3
-0
KylVedioActivity.kt
...java/com/mints/goodmoney/ui/activitys/KylVedioActivity.kt
+11
-12
KylPageAdapter.kt
...ain/java/com/mints/goodmoney/ui/adapter/KylPageAdapter.kt
+1
-1
activity_detail.xml
GoodMoney/app/src/main/res/layout/activity_detail.xml
+2
-2
activity_detail_apply.xml
GoodMoney/app/src/main/res/layout/activity_detail_apply.xml
+2
-2
floating_view.xml
GoodMoney/app/src/main/res/layout/floating_view.xml
+1
-1
No files found.
GoodMoney/app/build.gradle
View file @
56a54c9a
...
...
@@ -9,8 +9,8 @@ android {
applicationId
"com.mints.goodmoney"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
1
1
versionName
"1.1.
0
"
versionCode
1
4
versionName
"1.1.
3
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
@@ -178,8 +178,6 @@ dependencies {
implementation
'cn.jzvd:jiaozivideoplayer:7.0.5'
// 附件下载更新
implementation
'com.mindorks.android:prdownloader:0.6.0'
// 视频壁纸
implementation
'com.dingmouren.videowallpaper:videowallpaper:1.0.1'
// 圆角库
implementation
'com.github.SheHuan:NiceImageView:1.0.5'
...
...
GoodMoney/app/src/main/AndroidManifest.xml
View file @
56a54c9a
...
...
@@ -227,9 +227,12 @@
android:name=
".ui.activitys.KylVedioActivity"
android:configChanges=
"orientation|screenSize|keyboardHidden"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".call.detail.DetailActivity"
/>
<activity
android:name=
".call.permission.PermissionActivity"
/>
<activity
android:name=
".call.detail.DetailApplyActivity"
/>
<activity
android:name=
".call.detail.DetailActivity"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".call.permission.PermissionActivity"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".call.detail.DetailApplyActivity"
android:screenOrientation=
"portrait"
/>
<service
android:name=
".service.UpdateService"
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/call/widget/FloatingView.java
View file @
56a54c9a
...
...
@@ -94,6 +94,9 @@ public class FloatingView extends FrameLayout {
}
public
void
show
(
String
number
)
{
// if (!TextUtils.isEmpty(number)) {
// mNameView.setText(number);
// }
mVideoView
.
setVideoPath
(
VideoDBHelper
.
getInstance
().
getSelectVideo
(
mContext
,
number
));
mAcceptView
.
setVisible
();
mEndCallView
.
setVisible
();
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/KylVedioActivity.kt
View file @
56a54c9a
...
...
@@ -5,15 +5,12 @@ import android.os.Bundle
import
android.text.TextUtils
import
android.view.View
import
cn.jzvd.Jzvd
import
cn.sharesdk.wechat.friends.Wechat
import
com.dingmouren.videowallpaper.VideoWallpaper
import
com.downloader.Error
import
com.downloader.OnDownloadListener
import
com.downloader.PRDownloader
import
com.mints.goodmoney.R
import
com.mints.goodmoney.ad.vedio.VedioAdingManager
import
com.mints.goodmoney.call.detail.DetailActivity
import
com.mints.goodmoney.call.util.Util
import
com.mints.goodmoney.common.Constant
import
com.mints.goodmoney.manager.UserManager
import
com.mints.goodmoney.mvp.model.VedioAdingBean
...
...
@@ -21,7 +18,6 @@ import com.mints.goodmoney.mvp.presenters.KylVedioPresenter
import
com.mints.goodmoney.mvp.views.KylVedioView
import
com.mints.goodmoney.ui.activitys.base.BaseActivity
import
com.mints.goodmoney.utils.CacheUtil
import
com.mints.goodmoney.utils.LogUtil
import
com.mints.goodmoney.utils.MD5
import
com.tbruyelle.rxpermissions.RxPermissions
import
kotlinx.android.synthetic.main.activity_kyl_vedio.*
...
...
@@ -43,7 +39,6 @@ class KylVedioActivity : BaseActivity(), View.OnClickListener, KylVedioView {
private
lateinit
var
vedioAdingManager
:
VedioAdingManager
private
var
loadVedioFailCount
=
0
private
val
videoWallpaper
by
lazy
{
VideoWallpaper
()
}
private
var
downloadId
:
Int
=
-
1
//vedio下载id
private
var
downloadVedioSucFlag
=
false
// 下载视频成功
...
...
@@ -81,7 +76,7 @@ class KylVedioActivity : BaseActivity(), View.OnClickListener, KylVedioView {
override
fun
onBackPressed
()
{
if
(
Jzvd
.
backPress
())
{
return
;
return
}
super
.
onBackPressed
()
}
...
...
@@ -127,7 +122,7 @@ class KylVedioActivity : BaseActivity(), View.OnClickListener, KylVedioView {
.
request
(
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
,
Manifest
.
permission
.
WRITE_EXTERNAL_STORAGE
)
.
subscribe
{
granted
:
Boolean
->
if
(
granted
)
{
//
downloadVedioToCacheFile()
downloadVedioToCacheFile
()
}
else
{
showMissingPermissionDialog
(
"存储"
)
}
...
...
@@ -150,15 +145,19 @@ class KylVedioActivity : BaseActivity(), View.OnClickListener, KylVedioView {
.
build
()
.
start
(
object
:
OnDownloadListener
{
override
fun
onDownloadComplete
()
{
hideLoading
()
runOnUiThread
{
hideLoading
()
// downloadVedioSucFlag = true
val
vedioName
=
vedioPath
+
vedioName
DetailActivity
.
startSelf
(
this
@KylVedioActivity
,
vedioName
)
val
vedioName
=
vedioPath
+
vedioName
DetailActivity
.
startSelf
(
this
@KylVedioActivity
,
vedioName
)
}
}
override
fun
onError
(
error
:
Error
)
{
showToast
(
"加载失败"
)
hideLoading
()
runOnUiThread
{
showToast
(
"加载失败"
)
hideLoading
()
}
}
})
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/adapter/KylPageAdapter.kt
View file @
56a54c9a
...
...
@@ -25,7 +25,7 @@ class KylPageAdapter(val kylPageList: MutableList<KylBean.Data>) :
companion
object
{
const
val
HOLDER_TYPE_KYL
=
0
const
val
HOLDER_TYPE_CSJAD
=
1
const
val
HOLDER_TYPE_CSJAD
=
0
}
lateinit
var
context
:
Context
...
...
GoodMoney/app/src/main/res/layout/activity_detail.xml
View file @
56a54c9a
...
...
@@ -6,10 +6,10 @@
<com.mints.goodmoney.call.widget.CustomVideoView
android:id=
"@+id/video_view"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_centerInParent=
"true"
/>
android:layout_height=
"match_parent"
/>
<TextView
android:visibility=
"gone"
android:id=
"@+id/set_show_tv"
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
...
...
GoodMoney/app/src/main/res/layout/activity_detail_apply.xml
View file @
56a54c9a
...
...
@@ -18,9 +18,9 @@
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:layout_marginLeft=
"1
5
0dp"
android:layout_marginLeft=
"1
0
0dp"
android:layout_marginTop=
"100dp"
android:layout_marginRight=
"1
5
0dp"
android:layout_marginRight=
"1
0
0dp"
android:layout_marginBottom=
"10dp"
android:background=
"@drawable/shape_tv_gold"
android:gravity=
"center"
...
...
GoodMoney/app/src/main/res/layout/floating_view.xml
View file @
56a54c9a
...
...
@@ -18,7 +18,7 @@
android:layout_alignParentTop=
"true"
android:layout_marginTop=
"50dp"
android:gravity=
"center"
android:text=
"
unknown_contract
"
android:text=
"
未知来电
"
android:textColor=
"#AA99AA"
android:textSize=
"35sp"
android:textStyle=
"bold"
/>
...
...
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