From d0de29c2c26f0c720b48a1196b27eec9f98ccd8f Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 1 Nov 2016 17:38:44 -0700 Subject: Fix split screen mode not continuing to update UI --- .../java/github/daneren2005/dsub/activity/SubsonicActivity.java | 8 ++++---- .../main/java/github/daneren2005/dsub/fragments/ChatFragment.java | 8 ++++---- .../java/github/daneren2005/dsub/fragments/DownloadFragment.java | 8 ++++---- .../java/github/daneren2005/dsub/fragments/EqualizerFragment.java | 8 ++++---- .../github/daneren2005/dsub/fragments/NowPlayingFragment.java | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) (limited to 'app/src/main/java/github') diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java index 08321e80..0b10d7fb 100644 --- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -237,8 +237,8 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte } @Override - protected void onResume() { - super.onResume(); + protected void onStart() { + super.onStart(); Util.registerMediaButtonEventReceiver(this); // Make sure to update theme @@ -256,8 +256,8 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte } @Override - protected void onPause() { - super.onPause(); + protected void onStop() { + super.onStop(); UpdateView.removeActiveActivity(); } diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/ChatFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/ChatFragment.java index febf22de..3208ffb7 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/ChatFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/ChatFragment.java @@ -135,8 +135,8 @@ public class ChatFragment extends SubsonicFragment { } @Override - public void onResume() { - super.onResume(); + public void onStart() { + super.onStart(); final Handler handler = new Handler(); Runnable runnable = new Runnable() { @@ -164,8 +164,8 @@ public class ChatFragment extends SubsonicFragment { } @Override - public void onPause() { - super.onPause(); + public void onStop() { + super.onStop(); if(executorService != null) { executorService.shutdown(); executorService = null; diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java index 7594a99e..9e8f8c5b 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java @@ -65,8 +65,8 @@ public class DownloadFragment extends SelectRecyclerFragment imple } @Override - public void onResume() { - super.onResume(); + public void onStart() { + super.onStart(); final Handler handler = new Handler(); Runnable runnable = new Runnable() { @@ -86,8 +86,8 @@ public class DownloadFragment extends SelectRecyclerFragment imple } @Override - public void onPause() { - super.onPause(); + public void onStop() { + super.onStop(); executorService.shutdown(); } diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/EqualizerFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/EqualizerFragment.java index 9ee98cb4..948c59cf 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/EqualizerFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/EqualizerFragment.java @@ -110,8 +110,8 @@ public class EqualizerFragment extends SubsonicFragment { } @Override - public void onPause() { - super.onPause(); + public void onStop() { + super.onStop(); try { equalizerController.saveSettings(); @@ -125,8 +125,8 @@ public class EqualizerFragment extends SubsonicFragment { } @Override - public void onResume() { - super.onResume(); + public void onStart() { + super.onStart(); equalizerController = DownloadService.getInstance().getEqualizerController(); equalizer = equalizerController.getEqualizer(); bass = equalizerController.getBassBoost(); diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java index f55dbe1d..bf91bd1a 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java @@ -764,8 +764,8 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis } @Override - public void onResume() { - super.onResume(); + public void onStart() { + super.onStart(); if(this.primaryFragment) { onResumeHandlers(); } else { @@ -808,8 +808,8 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis } @Override - public void onPause() { - super.onPause(); + public void onStop() { + super.onStop(); onPauseHandlers(); } private void onPauseHandlers() { -- cgit v1.2.3