aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java8
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/ChatFragment.java8
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/DownloadFragment.java8
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/EqualizerFragment.java8
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java8
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() {