FIx breaking changes
This commit is contained in:
parent
cf598dc3cb
commit
102c05e927
|
@ -84,7 +84,7 @@ public class DescriptionFragment extends BaseFragment {
|
||||||
private void setupDescription() {
|
private void setupDescription() {
|
||||||
final Description description = streamInfo.getDescription();
|
final Description description = streamInfo.getDescription();
|
||||||
if (description == null || isEmpty(description.getContent())
|
if (description == null || isEmpty(description.getContent())
|
||||||
|| description == Description.emptyDescription) {
|
|| description == Description.EMPTY_DESCRIPTION) {
|
||||||
binding.detailDescriptionView.setVisibility(View.GONE);
|
binding.detailDescriptionView.setVisibility(View.GONE);
|
||||||
binding.detailSelectDescriptionButton.setVisibility(View.GONE);
|
binding.detailSelectDescriptionButton.setVisibility(View.GONE);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -185,7 +185,7 @@ public class PeertubeInstanceListFragment extends Fragment {
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
.setPositiveButton(R.string.ok, (dialog, which) -> {
|
.setPositiveButton(R.string.ok, (dialog, which) -> {
|
||||||
sharedPreferences.edit().remove(savedInstanceListKey).apply();
|
sharedPreferences.edit().remove(savedInstanceListKey).apply();
|
||||||
selectInstance(PeertubeInstance.defaultInstance);
|
selectInstance(PeertubeInstance.DEFAULT_INSTANCE);
|
||||||
updateInstanceList();
|
updateInstanceList();
|
||||||
instanceListAdapter.notifyDataSetChanged();
|
instanceListAdapter.notifyDataSetChanged();
|
||||||
})
|
})
|
||||||
|
|
|
@ -132,7 +132,7 @@ public class DownloadMissionRecover extends Thread {
|
||||||
switch (mRecovery.getKind()) {
|
switch (mRecovery.getKind()) {
|
||||||
case 'a':
|
case 'a':
|
||||||
for (AudioStream audio : mExtractor.getAudioStreams()) {
|
for (AudioStream audio : mExtractor.getAudioStreams()) {
|
||||||
if (audio.average_bitrate == mRecovery.getDesiredBitrate() && audio.getFormat() == mRecovery.getFormat()) {
|
if (audio.getAverageBitrate() == mRecovery.getDesiredBitrate() && audio.getFormat() == mRecovery.getFormat()) {
|
||||||
url = audio.getUrl();
|
url = audio.getUrl();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,13 +21,13 @@ class MissionRecoveryInfo(
|
||||||
constructor(stream: Stream) : this(format = stream.getFormat()!!) {
|
constructor(stream: Stream) : this(format = stream.getFormat()!!) {
|
||||||
when (stream) {
|
when (stream) {
|
||||||
is AudioStream -> {
|
is AudioStream -> {
|
||||||
desiredBitrate = stream.average_bitrate
|
desiredBitrate = stream.averageBitrate
|
||||||
isDesired2 = false
|
isDesired2 = false
|
||||||
kind = 'a'
|
kind = 'a'
|
||||||
}
|
}
|
||||||
is VideoStream -> {
|
is VideoStream -> {
|
||||||
desired = stream.getResolution()
|
desired = stream.resolution
|
||||||
isDesired2 = stream.isVideoOnly()
|
isDesired2 = stream.isVideoOnly
|
||||||
kind = 'v'
|
kind = 'v'
|
||||||
}
|
}
|
||||||
is SubtitlesStream -> {
|
is SubtitlesStream -> {
|
||||||
|
|
Loading…
Reference in New Issue