mirror of
https://github.com/zoriya/Opus.git
synced 2026-06-03 22:40:52 +00:00
Release v2.0.
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
Version: 1.9.0
|
||||
Link: https://github.com/AnonymusRaccoon/MusicApp/releases/download/1.9/MusicApp.v.1.9.apk
|
||||
Version: 2.0.0
|
||||
Link: https://github.com/AnonymusRaccoon/MusicApp/releases/download/2.0/MusicApp.v.2.0.apk
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.musicapp.android" android:installLocation="preferExternal" android:versionCode="11" android:versionName="1.9">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.musicapp.android" android:installLocation="preferExternal" android:versionCode="12" android:versionName="2.0">
|
||||
<uses-sdk android:minSdkVersion="21" />
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
public MediaSessionCompat mediaSession;
|
||||
public AudioManager audioManager;
|
||||
public NotificationManager notificationManager;
|
||||
private bool noisyRegistered;
|
||||
public static bool isRunning = false;
|
||||
public static string title;
|
||||
private static bool parsing = false;
|
||||
@@ -169,6 +170,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
noisyReceiver = new AudioStopper();
|
||||
|
||||
RegisterReceiver(noisyReceiver, new IntentFilter(AudioManager.ActionAudioBecomingNoisy));
|
||||
noisyRegistered = true;
|
||||
}
|
||||
|
||||
public void ChangeVolume(float volume)
|
||||
@@ -1092,7 +1094,11 @@ namespace MusicApp.Resources.Portable_Class
|
||||
player.PlayWhenReady = false;
|
||||
StopForeground(false);
|
||||
|
||||
UnregisterReceiver(noisyReceiver);
|
||||
if (!ShouldResumePlayback)
|
||||
{
|
||||
UnregisterReceiver(noisyReceiver);
|
||||
noisyRegistered = false;
|
||||
}
|
||||
|
||||
FrameLayout smallPlayer = MainActivity.instance.FindViewById<FrameLayout>(Resource.Id.smallPlayer);
|
||||
smallPlayer.FindViewById<ImageButton>(Resource.Id.spPlay).SetImageResource(Resource.Drawable.ic_play_arrow_black_24dp);
|
||||
@@ -1122,6 +1128,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
noisyReceiver = new AudioStopper();
|
||||
|
||||
RegisterReceiver(noisyReceiver, new IntentFilter(AudioManager.ActionAudioBecomingNoisy));
|
||||
noisyRegistered = true;
|
||||
|
||||
FrameLayout smallPlayer = MainActivity.instance.FindViewById<FrameLayout>(Resource.Id.smallPlayer);
|
||||
smallPlayer.FindViewById<ImageButton>(Resource.Id.spPlay).SetImageResource(Resource.Drawable.ic_pause_black_24dp);
|
||||
@@ -1179,6 +1186,10 @@ namespace MusicApp.Resources.Portable_Class
|
||||
|
||||
public void Stop()
|
||||
{
|
||||
if(noisyRegistered)
|
||||
UnregisterReceiver(noisyReceiver);
|
||||
|
||||
noisyRegistered = false;
|
||||
isRunning = false;
|
||||
title = null;
|
||||
parsing = false;
|
||||
|
||||
Reference in New Issue
Block a user