new release
This commit is contained in:
parent
4f272ae199
commit
6526002a9b
4 changed files with 15 additions and 4 deletions
|
@ -9,8 +9,8 @@ android {
|
||||||
applicationId "asgardius.page.s3manager"
|
applicationId "asgardius.page.s3manager"
|
||||||
minSdk 23
|
minSdk 23
|
||||||
targetSdk 33
|
targetSdk 33
|
||||||
versionCode 43
|
versionCode 44
|
||||||
versionName "0.3.4"
|
versionName "0.3.5"
|
||||||
setProperty("archivesBaseName", "s3-manager-$versionName")
|
setProperty("archivesBaseName", "s3-manager-$versionName")
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
|
@ -323,7 +323,7 @@ public class ObjectSelect extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (pdfendpoint == null) {
|
if (pdfendpoint == null || pdfendpoint.equals("")) {
|
||||||
Toast.makeText(getApplicationContext(),getResources().getString(R.string.pdf_reader_notready), Toast.LENGTH_SHORT).show();
|
Toast.makeText(getApplicationContext(),getResources().getString(R.string.pdf_reader_notready), Toast.LENGTH_SHORT).show();
|
||||||
} else {
|
} else {
|
||||||
pdfread.start();
|
pdfread.start();
|
||||||
|
|
|
@ -14,6 +14,7 @@ import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.PowerManager;
|
import android.os.PowerManager;
|
||||||
import android.support.v4.media.session.MediaSessionCompat;
|
import android.support.v4.media.session.MediaSessionCompat;
|
||||||
|
import android.util.Rational;
|
||||||
import android.view.Display;
|
import android.view.Display;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
@ -40,6 +41,7 @@ import com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvicto
|
||||||
import com.google.android.exoplayer2.upstream.cache.SimpleCache;
|
import com.google.android.exoplayer2.upstream.cache.SimpleCache;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An example full-screen activity that shows and hides the system UI (i.e.
|
* An example full-screen activity that shows and hides the system UI (i.e.
|
||||||
|
@ -71,6 +73,7 @@ public class VideoPlayer extends AppCompatActivity {
|
||||||
boolean hls;
|
boolean hls;
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
String videoURL;
|
String videoURL;
|
||||||
|
Rational ratio;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
@ -262,7 +265,14 @@ public class VideoPlayer extends AppCompatActivity {
|
||||||
videoPosition = player.getCurrentPosition();
|
videoPosition = player.getCurrentPosition();
|
||||||
playerView.setUseController(false);
|
playerView.setUseController(false);
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
PictureInPictureParams params = new PictureInPictureParams.Builder().build();
|
if(player.getVideoFormat() != null) {
|
||||||
|
ratio = new Rational(player.getVideoFormat().width, player.getVideoFormat().height);
|
||||||
|
} else if(player.getAudioFormat() != null) {
|
||||||
|
ratio = new Rational(player.getAudioFormat().width, player.getAudioFormat().height);
|
||||||
|
} else {
|
||||||
|
ratio = new Rational(1, 1);
|
||||||
|
}
|
||||||
|
PictureInPictureParams params = new PictureInPictureParams.Builder().setAspectRatio(ratio).build();
|
||||||
this.enterPictureInPictureMode(params);
|
this.enterPictureInPictureMode(params);
|
||||||
}else {
|
}else {
|
||||||
this.enterPictureInPictureMode();
|
this.enterPictureInPictureMode();
|
||||||
|
|
1
fastlane/metadata/android/en-US/changelogs/44.txt
Normal file
1
fastlane/metadata/android/en-US/changelogs/44.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
* Fix background playback issues
|
Loading…
Reference in a new issue