Skip to content

Commit

Permalink
some optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyinghan committed Apr 12, 2022
1 parent 9140cb5 commit 92a848a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
buildscript {
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
maven { url 'https://maven.aliyun.com/repository/central' }

google()
mavenCentral()
Expand All @@ -15,8 +15,7 @@ buildscript {
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
maven { url 'https://maven.aliyun.com/repository/central' }

maven { url 'https://jitpack.io' }

Expand Down
3 changes: 3 additions & 0 deletions demo/src/main/java/com/herohan/uvcdemo/EntryActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public void onClick(View v) {
XXPermissions.with(this)
.permission(needPermissions)
.request((permissions, all) -> {
if(!all){
return;
}

if (v.getId() == R.id.btnBasicPreview) {
startActivity(new Intent(this, BasicPreviewActivity.class));
Expand Down

0 comments on commit 92a848a

Please sign in to comment.