Skip to content

Commit

Permalink
Dialer: adjusted for compatibility with the latest Google Dialer
Browse files Browse the repository at this point in the history
  • Loading branch information
C3C0 committed Feb 7, 2021
1 parent d1a22be commit 9e68164
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GravityBox/src/main/java/com/ceco/r/gravitybox/ModDialer.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ private static ClassInfo resolveDialpadFragment(ClassLoader cl) {
String[] CLASS_NAMES = new String[] {
"com.android.dialer.app.dialpad.DialpadFragment",
"com.android.dialer.dialpadview.DialpadFragment",
"emy",
"egh",
"dyv"
};
Expand Down Expand Up @@ -134,6 +135,7 @@ protected void afterHookedMethod(MethodHookParam param) {
int.class, int.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) {
if (DEBUG) log("DialpadFragment: playTone");
if (mQuietHours != null &&
mQuietHours.isSystemSoundMuted(QuietHours.SystemSound.DIALPAD)) {
param.setResult(null);
Expand Down

0 comments on commit 9e68164

Please sign in to comment.