chat/comments: increase size a bit, exo: decrease max chunks, subs: full trim for auto subs, exo: add modern TLS ciphers

This commit is contained in:
Yuriy Liskov
2023-01-16 23:55:49 +02:00
parent 97e0f778a7
commit e8de90c072
6 changed files with 14 additions and 6 deletions

View File

@@ -29,7 +29,7 @@
<dimen name="message_padding_bottom">16dp</dimen>
<!-- Incoming/Outcoming text message size -->
<!-- MODIFIED: message_text_size: "17sp"->"14sp" -->
<dimen name="message_text_size">14sp</dimen>
<dimen name="message_text_size">15sp</dimen>
<dimen name="message_time_text_size">14sp</dimen>
<dimen name="message_date_header_text_size">16sp</dimen>
<dimen name="message_date_header_padding">16dp</dimen>

View File

@@ -15,7 +15,7 @@ import com.google.android.exoplayer2.upstream.TransferListener;
import java.util.List;
public class ErrorDefaultDashChunkSource extends DefaultDashChunkSource {
public static final int MAX_SEGMENTS_PER_LOAD = 3;
public static final int MAX_SEGMENTS_PER_LOAD = 2;
private final TrackErrorFixer mTrackErrorFixer;
public static final class Factory implements DashChunkSource.Factory {

View File

@@ -85,7 +85,7 @@ public class TrackSelectorUtil {
}
private static String buildLanguageString(Format format) {
return TextUtils.isEmpty(format.language) || "und".equals(format.language) ? "" : SubtitleTrack.trimMarker(format.language);
return TextUtils.isEmpty(format.language) || "und".equals(format.language) ? "" : SubtitleTrack.trim(format.language);
}
private static String buildBitrateString(Format format) {

View File

@@ -59,6 +59,9 @@ android {
dependencies {
implementation 'androidx.annotation:annotation:1.1.0'
// MODIFIED: add modern TLS ciphers to HttpUrlConnection
// https://stackoverflow.com/questions/16299531/how-to-override-the-cipherlist-sent-to-the-server-by-android-when-using-httpsurl
implementation 'info.guardianproject.netcipher:netcipher:2.1.0'
compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
compileOnly 'org.checkerframework:checker-compat-qual:' + checkerframeworkVersion
androidTestImplementation 'androidx.test:runner:' + androidXTestVersion

View File

@@ -25,6 +25,8 @@ import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.Log;
import com.google.android.exoplayer2.util.Predicate;
import com.google.android.exoplayer2.util.Util;
import info.guardianproject.netcipher.NetCipher;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
@@ -521,7 +523,10 @@ public class DefaultHttpDataSource extends BaseDataSource implements HttpDataSou
boolean allowIcyMetadata,
boolean followRedirects)
throws IOException {
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
//HttpURLConnection connection = (HttpURLConnection) url.openConnection();
// MODIFIED: Add modern TLS ciphers to HttpUrlConnection
// https://stackoverflow.com/questions/16299531/how-to-override-the-cipherlist-sent-to-the-server-by-android-when-using-httpsurl
HttpURLConnection connection = NetCipher.getHttpsURLConnection(url);
connection.setConnectTimeout(connectTimeoutMillis);
connection.setReadTimeout(readTimeoutMillis);
if (defaultRequestProperties != null) {

View File

@@ -59,8 +59,8 @@ android {
applicationId "com.liskovsoft.smarttubetv"
minSdkVersion project.properties.minSdkVersion
targetSdkVersion project.properties.targetSdkVersion
versionCode 868
versionName "16.78"
versionCode 869
versionName "16.79"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"