Skip to content

Commit

Permalink
Themis OpenLauncherTeam#67 instrumentation add.
Browse files Browse the repository at this point in the history
  • Loading branch information
Apochens committed Sep 14, 2021
1 parent 30e58f5 commit 560248c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ dependencies {
implementation 'com.balysv:material-ripple:1.0.2'
implementation 'net.qiujuer.genius:blur:2.0.0'
//compile 'in.championswimmer:SimpleFingerGestures_Android_Library:1.2'
implementation 'com.github.championswimmer:SimpleFingerGestures_Android_Library:1.2'
implementation 'com.github.championswimmer:SimpleFingerGestures_Android_Library:1.1'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.github.chyrta:AndroidOnboarder:0.6'
implementation 'cat.ereza:customactivityoncrash:1.5.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import android.content.Intent;
import android.media.AudioManager;
import android.os.AsyncTask;
import android.util.Log;
import android.view.View;

import com.afollestad.materialdialogs.MaterialDialog;
Expand Down Expand Up @@ -127,6 +128,11 @@ protected void onPostExecute(Void result) {
context.startActivity(new Intent(context, SettingsActivity.class));
break;
case VolumeDialog:

/** Themis-#67 */
Log.i("Themis-#67", "Step 1: Clicked the \"Volume\" icon in the drawer. The crash will occur, if open the \"Do not disturb\" pref in settings.");
/** Themis-#67 */

AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
audioManager.setStreamVolume(AudioManager.STREAM_RING, audioManager.getStreamVolume(AudioManager.STREAM_RING), AudioManager.FLAG_SHOW_UI);
break;
Expand Down
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

buildscript {
repositories {
maven{url"https://dl.google.com/dl/android/maven2/"}
maven{url'https://maven.aliyun.com/repository/public'}
maven{url'https://maven.aliyun.com/repository/google'}
maven { url 'https://maven.google.com' }
jcenter()
maven { url "https://jitpack.io" }
Expand All @@ -19,6 +22,9 @@ buildscript {

allprojects {
repositories {
maven{url"https://dl.google.com/dl/android/maven2/"}
maven{url'https://maven.aliyun.com/repository/public'}
maven{url'https://maven.aliyun.com/repository/google'}
maven { url 'https://maven.google.com' }
jcenter()
maven { url "https://jitpack.io" }
Expand Down

0 comments on commit 560248c

Please sign in to comment.