diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-11-01 17:38:44 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-11-01 17:38:44 -0700 |
commit | d0de29c2c26f0c720b48a1196b27eec9f98ccd8f (patch) | |
tree | 1f92a4419ae3cf4b618f714edc86d8316b4a2714 /app/src/main/java/github | |
parent | c53feba5ff570adf80d3971d91ab70958e4b6f14 (diff) | |
download | dsub-d0de29c2c26f0c720b48a1196b27eec9f98ccd8f.tar.gz dsub-d0de29c2c26f0c720b48a1196b27eec9f98ccd8f.tar.bz2 dsub-d0de29c2c26f0c720b48a1196b27eec9f98ccd8f.zip |
Fix split screen mode not continuing to update UI
Diffstat (limited to 'app/src/main/java/github')
5 files changed, 20 insertions, 20 deletions
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<DownloadFile> 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<DownloadFile> 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() { |