summaryrefslogtreecommitdiff
path: root/core/src/main/java
AgeCommit message (Collapse)Author
2018-04-07Using Bill Pugh Singleton ImplementationByteHamster
2018-04-06Actually return instance in getInstanceByteHamster
This probably fixes all those "db deleted" issues and mysterious NPEs Previously, the synchronized keyword on open() and close() was useless because it was synchronizing on different objects in each thread.
2018-04-03Merge pull request #2607 from ByteHamster/content-encodedMartin Fietz
Fixes empty contentEncoded
2018-04-01Merge pull request #2568 from ByteHamster/crashfixMartin Fietz
Fixed crash if media file exists but can not be read
2018-03-23Remove nested ifByteHamster
2018-03-23Use description for shownotes if it is longer than contentEncodedByteHamster
2018-03-23Fixes empty contentEncodedByteHamster
2018-03-22Fixed crash if media file exists but can not be readByteHamster
Happens when exporting db and importing it into debug version because media files are located in an app-private folder
2018-03-18Merge pull request #2569 from ByteHamster/white-iconMartin Fietz
Removed large icon from notification
2018-03-18Merge pull request #2574 from ByteHamster/forensicsMartin Fietz
Backup corrupted db
2018-03-04Fix possible NPE accessing image.download_urlJan Niehusmann
May fix #2386. If so, thanks to @cyplo who provided the logcat output which directed me to that code path.
2018-02-20Backup corrupted dbByteHamster
This might allow some forensics if #2463 happens. Maybe it also allows to recover some of the files manually.
2018-02-17Removed large iconByteHamster
Closes #2541. We do not need the same icon twice. As the icon is displayed white-on-white, it is not visible anyways. This also gives more space to the notification text
2018-01-24Merge pull request #2550 from ByteHamster/download-rangeMartin Fietz
Hotfix for servers not accepting the Range header
2018-01-23Hotfix for servers not accepting the Range headerByteHamster
Because of #2339, the file always exists when starting a download. There is still an issue with the server parsing "Range: bytes=0-" incorrectly, but this commit should make the error appear less often. Related to #2539
2018-01-22Merge pull request #2549 from AntennaPod/bugfix/corrupt-databaseMartin Fietz
Synchronize opening and closing of the database
2018-01-22Synchronize opening and closing of the databaseMartin Fietz
2018-01-21Merge branch 'develop' into stringbuilderMartin Fietz
2018-01-21Prefer StringBuilder over StringBufferAndrew Gaul
The latter has unnecessary synchronization. Found via error-prone.
2018-01-21Inline variablesMartin Fietz
2018-01-21Merge branch 'develop' into refactorMartin Fietz
# Conflicts: # app/src/main/java/de/danoeh/antennapod/activity/MediaplayerInfoActivity.java # core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
2018-01-21Merge pull request #2445 from ByteHamster/exportMartin Fietz
Database import/export
2018-01-21Merge pull request #2543 from gaul/static-finalMartin Fietz
Make some static fields final
2018-01-20Make some static fields finalAndrew Gaul
Adding final prohibits modification and allows initialization of primitive and String fields at compile time instead of runtime in clinit: https://developer.android.com/training/articles/perf-tips.html#UseFinal Found via error-prone.
2018-01-20Make some inner classes staticAndrew Gaul
This avoids an implicit this field and can help GC. Found via error-prone.
2018-01-19PlayerStatus and playable fields cannot be finalMartin Fietz
2018-01-14Add throws to avoid interface clashMartin Fietz
2018-01-14Remove catch for exception that is never thrownMartin Fietz
2018-01-14Lookup service via application context to avoid memory leakMartin Fietz
2018-01-14Remove unnecessary interface modifiersMartin Fietz
2018-01-14Remove redundant throws clausesMartin Fietz
2018-01-14Add final modifiersMartin Fietz
2018-01-14Weaken declaration accessMartin Fietz
2018-01-14Fix pointless arithmetic expressionMartin Fietz
2018-01-14Replace StringBuilder with StringMartin Fietz
2018-01-14Replace manual array t collection copyMartin Fietz
2018-01-14Remove unused importsMartin Fietz
2018-01-14Replace for loop with foreachMartin Fietz
2018-01-14Replace explicit type with <>Martin Fietz
2018-01-14Replace lambda with method referenceMartin Fietz
2018-01-14Replace anonymous type with lambdaMartin Fietz
2018-01-10Fix errorMartin Fietz
2018-01-10Silence warningsMartin Fietz
2018-01-10Remove assertionsMartin Fietz
2018-01-10Merge pull request #2534 from AntennaPod/sdk_int_lt_14H. Lehmann
Replace code for SDK version lower than 14
2018-01-09Replace code for SDK version lower than 14Martin Fietz
2018-01-09Cleanup executeAsyncMartin Fietz
2018-01-07Merge pull request #2520 from dirkmueller/include_cleanupMartin Fietz
Cleanup order/remove unused includes
2018-01-07Cleanup order/remove unused includesDirk Mueller
This is the result of Android Studio's include cleanup Macro. This removes some no longer used includes, simplifying the code a bit. The rest is grouping and resorting alphabetically.
2018-01-07Return START_STICKY from onStartCommand()Dirk Mueller
The _FLAG_ variant is the input enum, replace it with the value-equivalent properly typed enum.