Skip to content

Commit

Permalink
fix wrong imports
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Jan 3, 2024
1 parent 0351cb2 commit 2fb3a48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import de.felixnuesse.timedsilence.R
import de.felixnuesse.timedsilence.databinding.FragmentGraphBinding
import de.felixnuesse.timedsilence.dialogs.GraphOverviewDialog
import de.felixnuesse.timedsilence.handler.PreferencesManager
import de.felixnuesse.timedsilence.handler.calculator.HeadsetHandler
import de.felixnuesse.timedsilence.handler.calculator.BluetoothHandler
import de.felixnuesse.timedsilence.handler.volume.VolumeState
import de.felixnuesse.timedsilence.handler.volume.VolumeState.Companion.TIME_SETTING_LOUD
import de.felixnuesse.timedsilence.handler.volume.VolumeState.Companion.TIME_SETTING_SILENT
Expand Down Expand Up @@ -79,7 +79,7 @@ class GraphFragment : Fragment(), View.OnClickListener {
it.showAlignTop(builder.build())
}

if(!HeadsetHandler.headphonesConnected(view.context)){
if(!BluetoothHandler.headphonesConnected(view.context)){
binding.imageviewHeadphonesConnected.visibility=View.INVISIBLE
binding.textfieldHeadsetConnected.visibility=View.INVISIBLE
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import de.felixnuesse.timedsilence.handler.volume.VolumeState.Companion.TIME_SET
import de.felixnuesse.timedsilence.handler.volume.VolumeState.Companion.TIME_SETTING_VIBRATE
import de.felixnuesse.timedsilence.handler.LogHandler
import de.felixnuesse.timedsilence.handler.PreferencesManager
import de.felixnuesse.timedsilence.handler.calculator.HeadsetHandler
import de.felixnuesse.timedsilence.handler.calculator.BluetoothHandler
import de.felixnuesse.timedsilence.util.PermissionManager

class VolumeHandler(private var mContext: Context) {
Expand Down Expand Up @@ -216,7 +216,7 @@ class VolumeHandler(private var mContext: Context) {
Log.d(TAG, "VolumeHandler: Setting Audio Volume!")
val ignoreCheckWhenConnected = mPreferencesManager.checkIfHeadsetIsConnected()

if(HeadsetHandler.headphonesConnected(mContext) && ignoreCheckWhenConnected){
if(BluetoothHandler.headphonesConnected(mContext) && ignoreCheckWhenConnected){
Log.d(TAG, "VolumeHandler: Found headset, skipping...")
return
}
Expand Down

0 comments on commit 2fb3a48

Please sign in to comment.