From 8e129d04d0fba5bd637bd267d89906d47cab9a4f Mon Sep 17 00:00:00 2001
From: Tristan Roux
Date: Tue, 30 Apr 2019 11:27:44 +0200
Subject: [PATCH] Solving some bugs and releasing v3.3.4
---
Opus/Assets/Version.txt | 6 +++---
Opus/Code/Others/RemoveBlackBorder.cs | 11 ++++++++---
Opus/Code/UI/Fragments/Home.cs | 2 --
Opus/Opus.csproj | 10 ++++------
Opus/Properties/AndroidManifest.xml | 3 ++-
5 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/Opus/Assets/Version.txt b/Opus/Assets/Version.txt
index 1273e65..a9d3977 100644
--- a/Opus/Assets/Version.txt
+++ b/Opus/Assets/Version.txt
@@ -1,3 +1,3 @@
-Version: 3.3.0
-Beta: True
-Link: https://github.com/AnonymusRaccoon/Opus/releases/download/3.3.0/Opus.v3.3.0.apk
+Version: 3.3.4
+Beta: False
+Link: https://github.com/AnonymusRaccoon/Opus/releases/download/3.3.4/Opus.v3.3.4.apk
diff --git a/Opus/Code/Others/RemoveBlackBorder.cs b/Opus/Code/Others/RemoveBlackBorder.cs
index de077df..9bf6e15 100644
--- a/Opus/Code/Others/RemoveBlackBorder.cs
+++ b/Opus/Code/Others/RemoveBlackBorder.cs
@@ -19,9 +19,14 @@ namespace Opus.Others
int size = (int)(source.Width * 0.5625f);
int x = (int)(source.Width * 0.21875f); //(source.Width - source.Width * 0.5625f) / 2 = source.Width * (1 - 0.5625) / 2
int y = (source.Height - size) / 2;
- Bitmap bitmap = Bitmap.CreateBitmap(source, x, y, size, size);
- source.Recycle();
- return bitmap;
+ if (size > 0)
+ {
+ Bitmap bitmap = Bitmap.CreateBitmap(source, x, y, size, size);
+ source.Recycle();
+ return bitmap;
+ }
+ else
+ return source;
}
else
{
diff --git a/Opus/Code/UI/Fragments/Home.cs b/Opus/Code/UI/Fragments/Home.cs
index be3842d..24a63c3 100644
--- a/Opus/Code/UI/Fragments/Home.cs
+++ b/Opus/Code/UI/Fragments/Home.cs
@@ -142,9 +142,7 @@ namespace Opus.Fragments
if(playlists != null)
{
(List pl, List sp) = await PlaylistManager.ProcessSyncedPlaylists(playlists);
- Console.WriteLine("&sp count before: " + sp.Count);
List saved = await PlaylistManager.GetSavedYoutubePlaylists(sp, null);
- Console.WriteLine("&sp count afer: " + sp.Count);
sp.AddRange(saved);
sp.AddRange(pl);
diff --git a/Opus/Opus.csproj b/Opus/Opus.csproj
index f0caeda..44b8ebf 100644
--- a/Opus/Opus.csproj
+++ b/Opus/Opus.csproj
@@ -44,7 +44,7 @@
false
false
Xamarin
- armeabi-v7a;x86
+ armeabi-v7a;x86;x86_64;arm64-v8a
true
1G
false
@@ -65,9 +65,10 @@
false
false
false
- armeabi-v7a;x86
- false
+ armeabi-v7a;x86;x86_64;arm64-v8a
+ true
false
+ 1G
@@ -402,9 +403,6 @@
-
- Designer
-
Designer
diff --git a/Opus/Properties/AndroidManifest.xml b/Opus/Properties/AndroidManifest.xml
index 65ad4e7..ce87c04 100644
--- a/Opus/Properties/AndroidManifest.xml
+++ b/Opus/Properties/AndroidManifest.xml
@@ -1,10 +1,11 @@
-
+
+