Skip to content

Commit

Permalink
FloatingVolume: Convert extended dialog interface into standalone module
Browse files Browse the repository at this point in the history
Also:
* Fix floating head not being placed in last saved position
* Upgrade dependencies

Signed-off-by: Adam Myczkowski <[email protected]>
  • Loading branch information
Adam Myczkowski committed Sep 18, 2018
1 parent 5b668a6 commit 0b7b882
Show file tree
Hide file tree
Showing 9 changed files with 666 additions and 596 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import android.media.AudioManager;
import android.net.Uri;
import android.os.Handler;

import com.android.mycax.floatingvolume.interfaces.OnAudioVolumeChangedListener;

import androidx.annotation.NonNull;

class AudioVolumeContentObserver extends ContentObserver {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import android.content.Context;
import android.media.AudioManager;
import android.os.Handler;

import com.android.mycax.floatingvolume.interfaces.OnAudioVolumeChangedListener;

import androidx.annotation.NonNull;

public class AudioVolumeObserver {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package com.android.mycax.floatingvolume.audio;
package com.android.mycax.floatingvolume.interfaces;

import com.android.mycax.floatingvolume.audio.AudioVolumeObserver;

public interface OnAudioVolumeChangedListener {
void onAudioVolumeChanged(AudioVolumeObserver audioVolumeObserver);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.android.mycax.floatingvolume.interfaces;

public interface OnExpandedVolumeDialogClosed {
void notifyExpandedVolumeDialogClosed();
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-alpha09'
classpath 'com.android.tools.build:gradle:3.3.0-alpha10'


// NOTE: Do not place your application dependencies here; they belong
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Mar 31 17:48:20 BST 2018
#Tue Sep 18 01:09:52 BST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip

0 comments on commit 0b7b882

Please sign in to comment.