Commit Graph

4031 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
fb13bc59f8 save/restore selected tab when app gets killed
Now that setSelectedMenuInNav() works, it makes sense to do this.
2023-07-06 20:10:14 +02:00
Hans-Christoph Steiner
5cf4f32e44 fix tab highlight when programmatically showing tab 2023-07-06 20:07:00 +02:00
Hans-Christoph Steiner
04a5a4b8d9 handle Samsung oddness with Environment.isExternalStorageRemovable()
closes acra-crash-reports#498
2023-07-06 20:07:00 +02:00
Hans-Christoph Steiner
2bedd289e0 update official Android/AOSP version names
https://en.wikipedia.org/wiki/Android_version_history
2023-07-06 20:07:00 +02:00
Hans-Christoph Steiner
472acf68c3 doc Preferences vs. PreferenceManager.getDefaultSharedPreferences() 2023-07-06 20:07:00 +02:00
Hans-Christoph Steiner
fd2d94ccd5 handle Intents that select a specific tab in MainActivity
These Intents were being swallowed before they could select the tab.
2023-07-06 20:07:00 +02:00
Hans-Christoph Steiner
8a6988d9cb port external storage scanning services to JobIntentService
closes acra-crash-reports#584
closes #2645
2023-07-06 20:07:00 +02:00
Hans-Christoph Steiner
d37e9c110c run Reformat Code from Android Studio Flamingo | 2022.2.1 Patch 2 2023-07-05 21:56:49 +02:00
Hans-Christoph Steiner
487b0b1159 fix name in TAG 2023-07-05 21:40:12 +02:00
Hans-Christoph Steiner
48a10cac17 whitespace fixes from spotless applying AOSP code format 2023-07-05 21:40:12 +02:00
Hans-Christoph Steiner
560b24a006 fix import order for kellinwood files 2023-07-05 21:40:12 +02:00
Hans-Christoph Steiner
21d612a1df ./gradlew spotlessXmlApply 2023-07-04 18:20:40 +02:00
Torsten Grote
9fd466313b [app] Ensure existence of default categories
even if F-Droid repo may be disabled
2023-07-04 14:52:52 +00:00
Torsten Grote
091dd51b2b [app] Fix tvBanner deserialization 2023-07-04 11:01:17 -03:00
linsui
8a5534c798 fix typo
https://hosted.weblate.org/translate/f-droid/f-droid/en/?checksum=ac8354242ff60415#comments
2023-06-26 11:30:07 +00:00
Henrik Tunedal
1e6064a484 Add hidden preference to store "show apps" state 2023-06-21 14:32:10 +02:00
Torsten Grote
9faa4fa02c version code 1017000 2023-06-20 10:58:34 -03:00
Licaon_Kter
81c38ec654 Hide Run button for yourself - redone 2023-06-20 13:07:44 +00:00
Hans-Christoph Steiner
7dd35e59f9 set all swap PendingIntents with PendingIntent.FLAG_IMMUTABLE
#2624
2023-06-15 17:00:21 +00:00
Hans-Christoph Steiner
49114e4ffd explicitly declare the android:exported attribute
https://developer.android.com/about/versions/12/behavior-changes-12#exported

#2624

# Conflicts:
#	app/src/full/AndroidManifest.xml
2023-06-14 22:05:01 +02:00
Hans-Christoph Steiner
f2f922168b DownloaderService: create swap repo with correct repo address
This was stripping off the path, it needs to include the whole repo address.
Otherwise, the download URL is:
http://10.4.0.110:8888/de.markusfisch.android.binaryeye_97.apk

When it should be:
http://10.4.0.110:8888/fdroid/repo/de.markusfisch.android.binaryeye_97.apk

closes #2628
closes #2617
2023-06-14 22:04:56 +02:00
Hans-Christoph Steiner
9d696c8a5f set proxy w/ createUnresolved() to avoid NetworkOnMainThreadException
closes acra-crash-reports#190
2023-06-14 21:55:48 +02:00
Hans-Christoph Steiner
fd85259ae5 Don't fall into default: after Bonjour error
Well that was embarrasing...

closes #2518
closes acra-crash-reports#172
closes acra-crash-reports#178
2023-06-14 21:55:48 +02:00
Hans-Christoph Steiner
02c7580c7f do not crash on bad BonjourManager status Intent
Only crash if its a debug build, so we can finally track this thing
down.

acra-crash-reports#178
f673b5c1f1
2023-06-14 18:31:27 +00:00
Hans-Christoph Steiner
a59ab1a1ee bump targetSdkVersion to 28
closes #1440
2023-06-14 18:31:27 +00:00
Hans-Christoph Steiner
bdb9365746 register WifiStateChangeReceiver on app start
From the _full_ flavor, only `android.net.wifi.STATE_CHANGE` needed to
be moved from Manifest-declared to Context-registered.  The others are
covered under the exceptions:

https://developer.android.com/guide/components/broadcast-exceptions
2023-06-14 18:31:27 +00:00
Hans-Christoph Steiner
9ec6641eae remove duplicate definition of DeviceStorageReceiver from full 2023-06-14 18:31:27 +00:00
Hans-Christoph Steiner
703a1c10a7 use READ_EXTERNAL_STORAGE perm since only reading is needed
READ_EXTERNAL_STORAGE was added in SDK 16, this code predates that, so it
still used WRITE_EXTERNAL_STORAGE.  The minSdkVersion is 23 now, so the
correct permission is preferred.  This code does not do any writing, only
reading.

#1440
2023-06-14 18:31:27 +00:00
Hans-Christoph Steiner
22635cd525 add android.permission.FOREGROUND_SERVICE to full
refs #1440
https://developer.android.com/about/versions/pie/android-9.0-changes-28#fg-svc
2023-06-14 18:31:27 +00:00
Torsten Grote
3c23bf5c21 [app] don't crash on apps that don't export their launch activity 2023-06-13 17:01:40 -03:00
Torsten Grote
a25321b0be [app] ask for BLUETOOTH_CONNECT permission before turning it on 2023-06-13 17:01:39 -03:00
Torsten Grote
00795a21b5 [app] don't notify for apps from repo that just got removed 2023-06-13 17:01:39 -03:00
Torsten Grote
c02dc57daf [app] catch auto-download exception 2023-06-13 17:01:39 -03:00
Torsten Grote
6be85d9132 [app] loadUnbadgedIcon() can throw an NPE 2023-06-13 17:01:39 -03:00
Torsten Grote
612c87218d [app] get app from intent to ensure it isn't null 2023-06-13 17:01:39 -03:00
Torsten Grote
2d55fafb6b [app] don't crash when trying to uninstall an app that isn't installed
Can happen if the ROM is hacking package names, e.g. Aurora to Play Store
2023-06-13 17:01:39 -03:00
Torsten Grote
9645ccd9cd [app] don't launch MainActivity from application context 2023-06-13 12:46:57 -03:00
Torsten Grote
379adc8072 Prevent security exception when posting notifications without permission 2023-06-09 16:33:51 -03:00
Hans-Christoph Steiner
4a95ac2187 make sure Version Code is a long everywhere
* PackageInfo.versionCode -> PackageInfo.getLongVersionCode()
* PackageInfo.setLongVersionCode()

As far as I understand it, the Kotlin libs already use the Long version of
Version Code.

"This field was deprecated in API level 28."
https://developer.android.com/reference/android/content/pm/PackageInfo.html#versionCode
2023-06-09 19:26:42 +02:00
Torsten Grote
2048d6f478 Add code style to repo and fix it 2023-06-09 17:24:58 +00:00
Torsten Grote
7aa3e419db [app] always check for new updates when index had changes
and auto-download updates only once, not again for each repo that gets updated
2023-06-08 16:38:13 -03:00
Hans-Christoph Steiner
c9b4163fed run tools/remove-unused-and-blank-translations.py 2023-06-07 23:19:35 +02:00
Ihor Hordiichuk
f8e976b077 Translated using Weblate: Ukrainian (uk) by Ihor Hordiichuk <igor_ck@outlook.com>
Currently translated at 100.0% (494 of 494 strings)

Translation: F-Droid/F-Droid
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/uk/
2023-06-07 23:18:41 +02:00
Andrey
01676003b3 Translated using Weblate: Russian (ru) by Andrey <andrey@mailbox.org>
Currently translated at 100.0% (494 of 494 strings)

Translation: F-Droid/F-Droid
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/ru/
2023-06-07 23:18:38 +02:00
Andrey
69843cb6a0 Translated using Weblate: Russian (ru) by Andrey <andrey@mailbox.org>
Currently translated at 98.3% (486 of 494 strings)

Co-authored-by: Andrey <andrey@mailbox.org>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/ru/
Translation: F-Droid/F-Droid
2023-06-07 23:18:36 +02:00
ShareASmile
9f617e2199 Translated using Weblate: Punjabi (pa) by ShareASmile <aapshergill@gmail.com>
Currently translated at 100.0% (494 of 494 strings)

Translated using Weblate: Hindi (hi) by ShareASmile <aapshergill@gmail.com>

Currently translated at 100.0% (494 of 494 strings)

Translated using Weblate: Punjabi (pa) by ShareASmile <aapshergill@gmail.com>

Currently translated at 100.0% (493 of 493 strings)

Translated using Weblate: Hindi (hi) by ShareASmile <aapshergill@gmail.com>

Currently translated at 100.0% (493 of 493 strings)

Co-authored-by: ShareASmile <aapshergill@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/hi/
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/pa/
Translation: F-Droid/F-Droid
2023-06-07 23:18:31 +02:00
Fjuro
1cd2a99ffd Translated using Weblate: Czech (cs) by Fjuro <ifjuro@proton.me>
Currently translated at 100.0% (494 of 494 strings)

Translated using Weblate: Czech (cs) by Fjuro <ifjuro@proton.me>

Currently translated at 100.0% (493 of 493 strings)

Translated using Weblate: Czech (cs) by Fjuro <ifjuro@proton.me>

Currently translated at 100.0% (489 of 489 strings)

Translated using Weblate: Czech (cs) by Fjuro <ifjuro@proton.me>

Currently translated at 100.0% (489 of 489 strings)

Co-authored-by: Fjuro <ifjuro@proton.me>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/cs/
Translation: F-Droid/F-Droid
2023-06-07 23:18:19 +02:00
Agnieszka C
6d8a2821a4 Translated using Weblate: Polish (pl) by Agnieszka C <aga_04@o2.pl>
Currently translated at 100.0% (494 of 494 strings)

Translated using Weblate: Polish (pl) by Agnieszka C <aga_04@o2.pl>

Currently translated at 100.0% (493 of 493 strings)

Translated using Weblate: Polish (pl) by Agnieszka C <aga_04@o2.pl>

Currently translated at 100.0% (489 of 489 strings)

Co-authored-by: Agnieszka C <aga_04@o2.pl>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/pl/
Translation: F-Droid/F-Droid
2023-06-07 23:18:14 +02:00
Ajeje Brazorf
7e081fc541 Translated using Weblate: Sardinian (sc) by Ajeje Brazorf <lmelonimamo@yahoo.it>
Currently translated at 100.0% (494 of 494 strings)

Translated using Weblate: Sardinian (sc) by Ajeje Brazorf <lmelonimamo@yahoo.it>

Currently translated at 100.0% (489 of 489 strings)

Co-authored-by: Ajeje Brazorf <lmelonimamo@yahoo.it>
Translate-URL: https://hosted.weblate.org/projects/f-droid/f-droid/sc/
Translation: F-Droid/F-Droid
2023-06-07 23:17:57 +02:00
Hans-Christoph Steiner
8302e08962 Revert "Translated using Weblate: Sardinian (sc) by Ajeje Brazorf <lmelonimamo@yahoo.it>"
This reverts commit d0c6f5667b.
2023-06-07 23:13:38 +02:00