Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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_vedio
Commits
2ff828b3
Commit
2ff828b3
authored
Feb 19, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
88657f98
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
14 deletions
+23
-14
build.gradle
video/app/build.gradle
+2
-2
VipActivity.kt
...n/java/com/duben/happyplaylet/ui/activitys/VipActivity.kt
+6
-6
UIUtils.java
...p/src/main/java/com/duben/happyplaylet/utils/UIUtils.java
+14
-4
gradle.properties
video/gradle.properties
+1
-2
No files found.
video/app/build.gradle
View file @
2ff828b3
...
...
@@ -10,8 +10,8 @@ android {
applicationId
"com.duben.happyplaylet"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
3
versionName
"
1.0.2
"
versionCode
3
0
versionName
"
3.0.0
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
video/app/src/main/java/com/duben/happyplaylet/ui/activitys/VipActivity.kt
View file @
2ff828b3
...
...
@@ -558,12 +558,12 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
}
when
(
v
.
id
)
{
R
.
id
.
iv_dialog_vip_quit
->
{
//
if (isGuide) {
//
readyGoThenKill(MainActivity::class.java)
//
} else {
//
finish()
//
}
payYesDialog
!!
.
dismiss
()
if
(
isGuide
)
{
readyGoThenKill
(
MainActivity
::
class
.
java
)
}
else
{
finish
()
}
//
payYesDialog!!.dismiss()
}
R
.
id
.
tv_dialog_vip_next
->
{
cbVipAgreement
.
isChecked
=
true
...
...
video/app/src/main/java/com/duben/happyplaylet/utils/UIUtils.java
View file @
2ff828b3
...
...
@@ -22,13 +22,23 @@ import java.lang.reflect.Method;
public
class
UIUtils
{
public
static
int
getScreenWidth
(
Context
context
)
{
DisplayMetrics
dm
=
context
.
getResources
().
getDisplayMetrics
();
return
dm
.
widthPixels
;
try
{
DisplayMetrics
dm
=
context
.
getResources
().
getDisplayMetrics
();
return
dm
.
widthPixels
;
}
catch
(
Exception
e
){
return
0
;
}
}
public
static
int
getScreenHeight
(
Context
context
)
{
DisplayMetrics
dm
=
context
.
getResources
().
getDisplayMetrics
();
return
dm
.
heightPixels
;
try
{
DisplayMetrics
dm
=
context
.
getResources
().
getDisplayMetrics
();
return
dm
.
heightPixels
;
}
catch
(
Exception
e
){
return
0
;
}
}
...
...
video/gradle.properties
View file @
2ff828b3
...
...
@@ -21,9 +21,8 @@ android.nonTransitiveRClass=true
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
DEBUG_URL
=
"https://test.mints-id.com/camera-api/"
#DEBUG_URL="http://cui.mints-id.com/"
#
DEBUG_URL="https://api.mints-tech.cn/camera-api/"
DEBUG_URL
=
"https://api.mints-tech.cn/camera-api/"
RELEASE_URL="https://api.mints-tech.cn/camera-api/"
RELEASE_KEY_PASSWORD
=
mintshappyplaylet
...
...
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