Skip to content

Commit 5fed47f

Browse files
committed
temporal player memory leaking fix
1 parent add7b3b commit 5fed47f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

smarttubetv/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ android {
5757
applicationId "app.smarttube"
5858
minSdkVersion project.properties.minSdkVersion
5959
targetSdkVersion project.properties.targetSdkVersion
60-
versionCode 2329
61-
versionName "31.39"
60+
versionCode 2330
61+
versionName "31.40"
6262
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
6363
buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"
6464

smarttubetv/src/main/java/com/liskovsoft/smartyoutubetv2/tv/ui/common/LeanbackActivity.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ public void finish() {
129129
public void finishReally() {
130130
// Mandatory line. Fix un-proper view order (especially for playback view).
131131
getViewManager().startParentView(this);
132-
super.finishReally();
132+
// NOTE: temporal player memory leaking fix (Activities num grow with every player start)!
133+
// The command to check: adb shell dumpsys meminfo org.smarttube.stable
134+
if (!(this instanceof PlaybackActivity)) {
135+
super.finishReally();
136+
}
133137
}
134138

135139
private void finishTheApp() {

0 commit comments

Comments
 (0)