diff options
author | ByteHamster <info@bytehamster.com> | 2018-12-26 08:53:41 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2018-12-26 08:53:41 +0100 |
commit | 02bf71551bacd65be19ff6fb220e70162c4534da (patch) | |
tree | 99d23c57b960887927d64b602cbf3b14811709ea /app | |
parent | bb4b4655d25713dfddca7a52c5088938c604114b (diff) | |
download | AntennaPod-02bf71551bacd65be19ff6fb220e70162c4534da.zip |
Code style
Diffstat (limited to 'app')
10 files changed, 17 insertions, 17 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/AboutActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/AboutActivity.java index 2270c144c..ecfdf24b0 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/AboutActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/AboutActivity.java @@ -146,7 +146,7 @@ public class AboutActivity extends AppCompatActivity { @Override protected void onDestroy() { super.onDestroy(); - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } if (webViewContainer != null && webView != null) { diff --git a/app/src/main/java/de/danoeh/antennapod/activity/FeedInfoActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/FeedInfoActivity.java index f6a878873..178d0e743 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/FeedInfoActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/FeedInfoActivity.java @@ -107,7 +107,7 @@ public class FeedInfoActivity extends AppCompatActivity { disposable = Maybe.create((MaybeOnSubscribe<Feed>) emitter -> { Feed feed = DBReader.getFeed(feedId); - if(feed != null) { + if (feed != null) { emitter.onSuccess(feed); } else { emitter.onComplete(); @@ -180,7 +180,7 @@ public class FeedInfoActivity extends AppCompatActivity { @Override public void onDestroy() { super.onDestroy(); - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } } diff --git a/app/src/main/java/de/danoeh/antennapod/activity/FeedSettingsActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/FeedSettingsActivity.java index fcda186ad..f7bde5f21 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/FeedSettingsActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/FeedSettingsActivity.java @@ -140,7 +140,7 @@ public class FeedSettingsActivity extends AppCompatActivity { disposable = Maybe.create((MaybeOnSubscribe<Feed>) emitter -> { Feed feed = DBReader.getFeed(feedId); - if(feed != null) { + if (feed != null) { emitter.onSuccess(feed); } else { emitter.onComplete(); @@ -287,7 +287,7 @@ public class FeedSettingsActivity extends AppCompatActivity { @Override public void onDestroy() { super.onDestroy(); - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } } diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java index 35c468b53..05519d728 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -491,7 +491,7 @@ public class MainActivity extends CastEnabledActivity implements NavDrawerActivi super.onStop(); EventDistributor.getInstance().unregister(contentUpdate); EventBus.getDefault().unregister(this); - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } if(pd != null) { diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java index 165cb7679..1cddaa655 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java @@ -290,7 +290,7 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements controller.release(); controller = null; // prevent leak } - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } super.onStop(); @@ -952,7 +952,7 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements if (feedItem == null) { return; } - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } disposable = Observable.fromCallable(() -> DBReader.getFeedItem(feedItem.getId())) diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerInfoActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerInfoActivity.java index e549f0115..1c1de583a 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerInfoActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerInfoActivity.java @@ -127,7 +127,7 @@ public abstract class MediaplayerInfoActivity extends MediaplayerActivity implem if(pagerAdapter != null) { pagerAdapter.setController(null); } - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } EventDistributor.getInstance().unregister(contentUpdate); diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java index cc331e24a..8f2629b43 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java @@ -229,7 +229,7 @@ public class ProxyDialog { } private void test() { - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } if(!checkValidity()) { diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java index 485ae25fd..ef522d3b3 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java @@ -125,7 +125,7 @@ public class AllEpisodesFragment extends Fragment { public void onStop() { super.onStop(); EventDistributor.getInstance().unregister(contentUpdate); - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } } @@ -462,7 +462,7 @@ public class AllEpisodesFragment extends Fragment { } void loadItems() { - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } if (viewsCreated && !itemsLoaded) { diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java index d2b9d2f67..4bba9b255 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/CompletedDownloadsFragment.java @@ -61,7 +61,7 @@ public class CompletedDownloadsFragment extends ListFragment { public void onStop() { super.onStop(); EventDistributor.getInstance().unregister(contentUpdate); - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } } @@ -69,7 +69,7 @@ public class CompletedDownloadsFragment extends ListFragment { @Override public void onDetach() { super.onDetach(); - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } } @@ -79,7 +79,7 @@ public class CompletedDownloadsFragment extends ListFragment { super.onDestroyView(); listAdapter = null; viewCreated = false; - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } } @@ -182,7 +182,7 @@ public class CompletedDownloadsFragment extends ListFragment { }; private void loadItems() { - if(disposable != null) { + if (disposable != null) { disposable.dispose(); } if (items == null && viewCreated) { diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java index 4e010f184..d3f3cbd7a 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ExternalPlayerFragment.java @@ -186,7 +186,7 @@ public class ExternalPlayerFragment extends Fragment { } disposable = Maybe.create(emitter -> { Playable media = controller.getMedia(); - if(media != null) { + if (media != null) { emitter.onSuccess(media); } else { emitter.onComplete(); |