Skip to content

[pull] master from yuliskov:master #642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ private void runFormatErrorAction(Throwable error) {

String message = error.getMessage();
String className = error.getClass().getSimpleName();
String fullMsg = String.format("loadFormatInfo error: %s: %s", className, message);
String fullMsg = String.format("loadFormatInfo error: %s: %s", className, message + "\n" + Utils.getTopStackTraceElement(error));
Log.e(TAG, fullMsg);

if (!Helpers.containsAny(message, "fromNullable result is null")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1058,4 +1058,13 @@ public static boolean skipCronet() {
public static boolean isEnoughRam(Context context) {
return VERSION.SDK_INT > 21 && Helpers.getDeviceRam(context) > 1_500_000_000; // 1.5 GB
}

public static String getTopStackTraceElement(Throwable throwable) {
StackTraceElement[] elements = throwable.getStackTrace();
if (elements.length > 0) {
return elements[0].toString();
} else {
return "No stack trace available";
}
}
}
4 changes: 2 additions & 2 deletions smarttubetv/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ android {
applicationId "com.liskovsoft.smarttubetv"
minSdkVersion project.properties.minSdkVersion
targetSdkVersion project.properties.targetSdkVersion
versionCode 1978
versionName "27.88"
versionCode 1979
versionName "27.89"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"

Expand Down