Commit Graph

1730 Commits

Author SHA1 Message Date
430b18e77b Rename auto install preference to better reflect behaviour.
Auto install preference always runs after a sync, even if it's manual.
The names of the preference & strings have been updated to reflect this
new behaviour.
2022-01-04 21:44:24 +11:00
5fbb6dcb61 Improve SyncService post-sync behaviour, rewrite new preference.
Moved the update query disposable to before the post-sync if-else block
so that the debug flag can be removed and everything can operate as
normal.

Rewrote the title of the new preference for auto updates to reduce the
use of jargon and to be a bit clearer.
2022-01-04 21:30:57 +11:00
3ea8cd8c66 Resolve SecurityException in installer, tweak installed notification.
Catch and ignore SecurityExceptions when cleaning up old installer
sessions. Catch and ignore session opening exceptions.

Reduce timeout for "Installed" notifications to 5s (as it was before).

Revert removal of intent data for the install prompt notification.
2022-01-04 20:50:48 +11:00
375ab23edb Improve install notifications, improve DefaultInstaller, misc. clean-up
Installer notifications have their own channel, their tags have been
fixed, and the timeout has been properly set instead of using sleep.

Ensured that DefaultInstaller's sessions use unique file names. Also
improved error handling by including broken pipes and by preventing
post-copy operations if an error has occurred.

Some cleaning up has been done in Common, DownloadService, and
SyncService. A few changes have been cherry-picked from master.
2022-01-04 20:26:07 +11:00
e1fc3c656a Make auto-update default on Android 12+ & stop background prompts.
Sets preference for auto updates to true by default if device runs
Android 12 and later.

Reverts change allowing the install prompt to show up from the
background and instead require the notification on all Android versions.
2022-01-04 16:21:08 +11:00
07bc4c3cff Remove: MainActivityX's Cursor LoaderCallbacks' implementation 2022-01-04 00:30:20 +01:00
3082e7153d Update: Replace CursorOwner's de-/attaching with VM's fillList 2022-01-03 23:36:04 +01:00
bedf5cad3f Translated using Weblate (Japanese)
Currently translated at 94.8% (166 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/ja/
2022-01-03 15:38:48 +01:00
bd581814ca Translated using Weblate (Ukrainian)
Currently translated at 100.0% (175 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/uk/
2022-01-03 15:38:47 +01:00
c059b54078 Translated using Weblate (Russian)
Currently translated at 100.0% (175 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/ru/
2022-01-03 15:38:47 +01:00
b7ab8ab98e Translated using Weblate (Japanese)
Currently translated at 89.1% (156 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/ja/
2022-01-03 14:26:22 +01:00
fce311098d Implement automatic updates after repository sync
Initial implementation of fully automatic updates, allowing apps to be
updated after a repo sync has been completed. It can be enabled with a
new preference in settings.

Implemented by greatly modifying SyncService to allow updates to be run
on every completed sync before notifications would be outputted. Note
that the update notification no longer appears if auto updates are
enabled.

BuildConfig.DEBUG is used to force syncing to run to completion, even if
there are no changes to the repos. This allow reliable testing by
turning the sync button into an "update all" button. This should be
removed once an "Update all" button has been implemented in the updates
tab.

Cache file checking in DefaultInstaller is now more robust.
2022-01-03 20:21:36 +11:00
d95fa04257 Add: Room RxJava dependency 2022-01-03 09:22:46 +01:00
adf305ffc0 Prevent DefaultInstaller from working on a non-existent cache file.
Ensures that the cache file exists before attempting an install using
it. This fixes a crash that can occur if the file is not yet available,
likely due to an I/O-related race condition.
2022-01-03 19:20:00 +11:00
3e8e23e111 Simplify install prompt handling
Reverts most changes to MainActivity and uses handleSpecialIntent
instead. handleSpecialIntent now defers installer prompt to
InstallerService by starting it again.

SpecialIntent has been modified to accommodate extra data needed to
handle these callbacks.
2022-01-03 14:51:31 +11:00
4547ef8a55 Update: Replace repositories observable disposable with Room-RxJava's Flowable 2022-01-03 00:38:55 +01:00
70eee26048 Add: Database instance to Main fragments VM 2022-01-03 00:29:16 +01:00
6c21afb8a1 Translated using Weblate (French)
Currently translated at 100.0% (175 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/fr/
2022-01-01 14:54:12 +01:00
73ac718ce2 Fix install prompt notification, further automate updates/installs.
Fixes "tap to install" notification not launching an activity. Install
notifications moved to InstallerService so that we only show them for
apps that need intervention (and lets us preserve our install session).

All installs go to the installer, allowing for downloads to jump
straight into installation if possible (auto updates or showing prompt
on A9 and earlier). If a prompt is needed, the notification is still
shown.

Additional utility function checks if app is in the foreground. Used to
ensure that we do not launch a prompt that cannot be launched.

Miscellaneous comments have been added and improved.
2021-12-31 10:41:45 +11:00
62ac644891 Translated using Weblate (Indonesian)
Currently translated at 100.0% (175 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/id/
2021-12-30 21:45:08 +01:00
a197338b48 Translated using Weblate (Finnish)
Currently translated at 97.1% (170 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/fi/
2021-12-30 21:45:06 +01:00
82c48b6183 Translated using Weblate (Persian)
Currently translated at 100.0% (175 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/fa/
2021-12-30 21:45:06 +01:00
f0e30b78d1 Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.4% (174 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/nb_NO/
2021-12-30 21:45:05 +01:00
8e22af92d5 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (175 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/zh_Hans/
2021-12-30 21:45:05 +01:00
3fe23facfa Translated using Weblate (Turkish)
Currently translated at 100.0% (175 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/tr/
2021-12-30 21:45:05 +01:00
c1606532d2 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (175 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/pt_BR/
2021-12-30 21:45:05 +01:00
f861da7c83 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (175 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/pt_BR/
2021-12-30 21:45:04 +01:00
cfb586e456 Translated using Weblate (Italian)
Currently translated at 99.4% (174 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/it/
2021-12-30 21:45:04 +01:00
551cabfea9 Translated using Weblate (Spanish)
Currently translated at 100.0% (175 of 175 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/es/
2021-12-30 21:45:04 +01:00
0bda05445a Added translation using Weblate (Indonesian) 2021-12-30 19:03:26 +01:00
353e7468b0 Suggested change made 2021-12-29 14:54:40 +01:00
51030cfe1a Improve: Performance Improvement with inline function 2021-12-29 12:24:44 +05:30
0298875e14 Fix: Settings switch changing on theme changes 2021-12-28 13:55:55 +05:30
f090b506fe Fix: Remove Configuration Caching to fix building & some renaming 2021-12-28 13:37:48 +05:30
fc9529a389 Fix: Error for "QUERY_ALL_PACKAGES" 2021-12-28 13:27:20 +05:30
25fac9e773 Improve: Added Sync automatically only when on wifi and plugged in 2021-12-28 13:24:04 +05:30
b67a5fdc9f Add: Standard Lib for Kotlin 2021-12-28 13:22:08 +05:30
ad51a48d02 Translated using Weblate (Japanese)
Currently translated at 64.9% (113 of 174 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/ja/
2021-12-27 19:50:53 +01:00
80c50af6c9 Translated using Weblate (Czech)
Currently translated at 47.1% (82 of 174 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/cs/
2021-12-27 19:50:53 +01:00
ef2268f811 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (174 of 174 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/uk/
2021-12-27 19:50:53 +01:00
c9a920705c Translated using Weblate (Finnish)
Currently translated at 97.1% (169 of 174 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/fi/
2021-12-27 19:50:53 +01:00
298dbb1e7f Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (174 of 174 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/nb_NO/
2021-12-27 19:50:53 +01:00
fe67eb48de Translated using Weblate (Russian)
Currently translated at 100.0% (174 of 174 strings)

Translation: Droidify/Localization
Translate-URL: https://hosted.weblate.org/projects/droidify/localization/ru/
2021-12-27 19:50:53 +01:00
66075c9e64 Fix: Micro-crash on download cancel
Improve: Use provided function
2021-12-27 13:27:26 +05:30
dbd43b1a2b Improve: Better Share menu 2021-12-27 13:27:26 +05:30
2899217422 Added translation using Weblate (Japanese) 2021-12-26 17:10:20 +01:00
292b4ae9c3 Add: New adapters to LatestFragment 2021-12-26 02:41:34 +01:00
113cb9864d Add: New adapters to InstalledFragment 2021-12-26 02:41:18 +01:00
6b49062093 Update: Allow creating V/HAppItems without repo (no icon downloaded) 2021-12-26 02:40:37 +01:00
3f440dff2a Add: Horizontal and vertical apps' items' classes 2021-12-26 01:39:26 +01:00