5207 Commits

Author SHA1 Message Date
hotlittlewhitedog
93885371cc add-sorting-redo-c3
modified:   app/src/main/java/org/fdroid/fdroid/views/apps/AppListActivity.java
	modified:   app/src/main/res/layout/activity_app_list.xml
2018-02-12 18:59:27 +01:00
hotlittlewhitedog
e72348b2d9 add-sorting-redo-c2
modified:   app/src/main/java/org/fdroid/fdroid/views/apps/AppListActivity.java
	modified:   app/src/main/res/layout/activity_app_list.xml
2018-02-12 18:32:15 +01:00
Hans-Christoph Steiner
0159020c2e whitespace code format changes for AndroidManifest.xml
This moves towards the standard Android Studio Ctrl-Alt-L code format with
only whitespace changes.  This just removes this one kind of space, since
its widespread, and easy to track.  I did this using:

sed -i 's," />,"/>,g' app/src/main/AndroidManifest.xml
2018-02-08 23:47:53 +01:00
Hans-Christoph Steiner
0f98e1e125 ACRA: add more fields to crash reports, but no user identifying info
extended info on things we already have:
* PRODUCT is another name for BRAND/PHONE_MODEL
* TOTAL_MEM_SIZE can be derived from hardware name
* DISPLAY is also available by looking up the hardware
* STACK_TRACE_HASH should make automated sorting easier

new info:
* PACKAGE_NAME is only new info if the user is using a whitelabel app
* AVAILABLE_MEM_SIZE can be used to track users, but only when provided at
  high resolution, e.g. once per second or higher.  Most users only send a
  single crash report.  High frequency reporters send under 100, which is
  still orders of magnatude below what is needed to track users.
2018-02-08 23:41:31 +01:00
hotlittlewhitedog
333d0a5ea3 add_sorting_redo_c1
new file:   app/src/main/res/drawable-hdpi/ic_az_white.png
	modified:   app/src/main/res/drawable-hdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-hdpi/ic_last_updated_white.png
	new file:   app/src/main/res/drawable-mdpi/ic_az_white.png
	modified:   app/src/main/res/drawable-mdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-mdpi/ic_last_updated_white.png
	new file:   app/src/main/res/drawable-xhdpi/ic_az_white.png
	modified:   app/src/main/res/drawable-xhdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-xhdpi/ic_last_updated_white.png
	new file:   app/src/main/res/drawable-xxhdpi/ic_az_white.png
	modified:   app/src/main/res/drawable-xxhdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-xxhdpi/ic_last_updated_white.png
	new file:   app/src/main/res/drawable-xxxhdpi/ic_az_white.png
	modified:   app/src/main/res/drawable-xxxhdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-xxxhdpi/ic_last_updated_white.png
	modified:   app/src/main/res/layout/activity_app_list.xml
2018-02-07 19:09:35 +01:00
Hans-Christoph Steiner
b11cc6ab28 checkstyle fixes: LineLength 2018-02-06 00:17:43 +01:00
Hans-Christoph Steiner
bb37a013a8 checkstyle: do not include URLs in line length checks 2018-02-06 00:17:43 +01:00
Hans-Christoph Steiner
c95c2ed283 gitlab-ci: order "tests" job so most important are run first
This means that we can decide whether to ignore the style tests if the
rest of the more meaningful tests pass.
2018-02-06 00:17:43 +01:00
Hans-Christoph Steiner
82f5e4ff31 add standard pre-push hook that runs basic gradle checks 2018-02-06 00:17:43 +01:00
Hans-Christoph Steiner
1e0200fa30 add standard pre-commit hook that does quick checks, e.g. l18n scripts 2018-02-06 00:17:43 +01:00
Hans-Christoph Steiner
2daf741c4a versionCode 1001002 1.1-alpha2 2018-02-06 00:17:43 +01:00
Hans-Christoph Steiner
3fa90e4666 update CHANGELOG 2018-02-06 00:17:43 +01:00
Hans-Christoph Steiner
606ef45bcd Merge branch 'force-updates' into 'master'
force updates after OS update and system locale changes

Closes #780 and #225

See merge request fdroid/fdroidclient!636
2018-02-05 23:13:53 +00:00
hotlittlewhitedog
54ed573070 add-sorting-newic-redo
new file:   app/src/main/res/drawable-hdpi/ic_az_black.png
	new file:   app/src/main/res/drawable-hdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-mdpi/ic_az_black.png
	new file:   app/src/main/res/drawable-mdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-xhdpi/ic_az_black.png
	new file:   app/src/main/res/drawable-xhdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-xxhdpi/ic_az_black.png
	new file:   app/src/main/res/drawable-xxhdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-xxxhdpi/ic_az_black.png
	new file:   app/src/main/res/drawable-xxxhdpi/ic_last_updated_black.png
2018-02-04 22:15:46 +01:00
hotlittlewhitedog
b79c6a9780 add-sorting-redo
modified:   app/src/main/java/org/fdroid/fdroid/views/apps/AppListActivity.java
	modified:   app/src/main/res/layout/activity_app_list.xml
	modified:   app/src/main/res/values/strings.xml
	app/src/main/res/drawable-hdpi/ic_az_black.png
	app/src/main/res/drawable-hdpi/ic_last_updated_black.png
	app/src/main/res/drawable-mdpi/ic_az_black.png
	app/src/main/res/drawable-mdpi/ic_last_updated_black.png
	app/src/main/res/drawable-xhdpi/ic_az_black.png
	app/src/main/res/drawable-xhdpi/ic_last_updated_black.png
	app/src/main/res/drawable-xxhdpi/ic_az_black.png
	app/src/main/res/drawable-xxhdpi/ic_last_updated_black.png
	app/src/main/res/drawable-xxxhdpi/ic_az_black.png
	app/src/main/res/drawable-xxxhdpi/ic_last_updated_black.png
2018-02-04 22:13:20 +01:00
Hans-Christoph Steiner
29658259fa force clean index update when underlying OS is upgraded
Things like permission support, locales, etc. can change when Android is
updated.  So the database should be rebuilt from scratch with a fresh
download of the indexes.

closes #780
2018-01-31 16:20:24 +01:00
Hans-Christoph Steiner
887c55247a force full index update when system locale changes
The database currently only stores the active language.  So if the
user changes the system language of the phone, then the language of
all the app descriptions will be out of sync until the next update.
This forces an update when the locale is changed.  This functionality
is also needed for events like OS upgrades.

closes #225
2018-01-31 16:20:24 +01:00
Hans-Christoph Steiner
6448491751 WifiStateChangeService: exit after trying for 2 minutes
It was tried until it got an IP address, but that will only happen if there
is a wifi device configured.  Since WifiStateChangeService is started when
F-Droid starts, WifiStateChangeService could run for days if someone never
connected to WiFi in that time.

WifiStateChangeService is also started by NETWORK_STATE_CHANGED_ACTION so
it should start each time there is a change to the WiFi connection.
2018-01-31 16:20:23 +01:00
Hans-Christoph Steiner
8a8ca2e6f7 WifiStateChangeService: use Intent static start method pattern
This is the standard pattern for starting IntentServices.  It also makes
it really easy to trace what is starting this Service.
2018-01-31 16:20:23 +01:00
Hans-Christoph Steiner
6d011c3895 use triedEmptyUpdate methods in Preferences throughout the codebase
We have these methods, they should be used!
2018-01-31 16:20:23 +01:00
Hans-Christoph Steiner
d8879dd425 make DBHelper follow the Java Singleton pattern
It was already behaving like a singleton, but the code was spread around in
other classes.  DBHelper does not use a private constructor though since
the tests prevent it.
2018-01-31 16:20:23 +01:00
Hans-Christoph Steiner
2fe7faed6e convert panic preferences to standard Preferences code style
Yes, this is an ugly and old style, but mixing styles only makes it worse.
Plus it breaks the tests in some cases, since it makes Preferences depend
on Resources.
2018-01-31 15:04:14 +01:00
Torsten Grote
a639edb59c
Style NoPanicApp icon depending on theme 2018-01-30 19:07:37 -02:00
Andrew Gaul
d3cb775101 Configure error prone
Disable a few noisy warnings.
2018-01-30 09:03:29 -08:00
Hans-Christoph Steiner
6260c11efc Merge branch 'static-inner-class' into 'master'
Make some inner classes static

See merge request fdroid/fdroidclient!633
2018-01-30 15:11:55 +00:00
Torsten Grote
95b138b5d5
Fix background of AlertDialogs for DialogPreferences 2018-01-29 17:26:32 -02:00
Hans-Christoph Steiner
f83094d9fe Merge branch 'app-hiding' into 'master'
Implement App Hiding

See merge request fdroid/fdroidclient!629
2018-01-29 19:18:09 +00:00
Andrew Gaul
94c4374bf7 Make some inner classes static
This avoids an implicit this field and can help GC.  Found via
error-prone.
2018-01-28 16:28:56 -08:00
Torsten Grote
6067c15085
Implement App Hiding
This commit allows F-Droid to hide itself from the laucher.
It can be hidden either as response to a panic trigger
or as a manual action by long pressing the floating search button.
The latter needs to be explicitly enabled in the settings.

Once hidden, a semi-functional fake calculator app appears in the
launcher that can be used to bring F-Droid back by entering a
pre-defined PIN.
2018-01-27 16:42:59 -02:00
Hans-Christoph Steiner
3b65cd38e7 update CHANGELOG 1.1-alpha1 2018-01-26 22:58:48 +01:00
Hans-Christoph Steiner
34c17c7e74 versionCode 1001001 2018-01-26 22:58:48 +01:00
dkanada
b5e6db76a7 rename strings and preferences
!617
2018-01-26 19:24:55 +01:00
Hans-Christoph Steiner
6fe1fa581f Merge branch 'provisioning' into 'master'
file based provisioning + authentication support in add repo Intents

See merge request fdroid/fdroidclient!630
2018-01-26 18:24:21 +00:00
Hans-Christoph Steiner
d6ab0ddde1 Merge branch 'weblate' into 'master'
Weblate

See merge request fdroid/fdroidclient!631
2018-01-26 16:58:59 +00:00
Hans-Christoph Steiner
e3d47fbe81 Weblate 2018-01-26 16:58:53 +00:00
Michael Pöhn
c60c606dcf remove outdated comments; use File concatenation instead of separators 2018-01-26 17:56:06 +01:00
Hans-Christoph Steiner
1959657092 Merge branch 'issue-1295' into 'master'
Fixes the behaviour of cancel button

Closes #1295

See merge request fdroid/fdroidclient!628
2018-01-26 12:39:08 +00:00
Hans-Christoph Steiner
c61024e070 Merge branch 'add-padding-to-last-app-redo' into 'master'
Add padding to last app in Category

See merge request fdroid/fdroidclient!625
2018-01-26 13:30:26 +01:00
Hans-Christoph Steiner
720822e260 keep category count at original number: 20 2018-01-26 13:29:29 +01:00
Michael Pöhn
aab46c8ab2 implemented provisioning routine 2018-01-25 23:28:15 +01:00
Michael Pöhn
bb1292586b fix lint for ManageRepoActivity 2018-01-25 23:28:15 +01:00
Michael Pöhn
0f64fd30c6 fix lint for NewRepoConfig 2018-01-25 23:28:15 +01:00
Michael Pöhn
b13e27f759 trigger provisions on app start 2018-01-25 23:28:15 +01:00
Michael Pöhn
9786fd2550 added authentication parsing support to add-repo dialog 2018-01-25 23:28:15 +01:00
Michael Pöhn
96def8adca added parsing for repository signing key property to provisioning files 2018-01-25 23:28:15 +01:00
Michael Pöhn
4a5ad0a33d implemented parser for (repository) provisioning 2018-01-25 23:28:15 +01:00
Shobhit Agarwal
88e567354e Fixes the behaviour of cancel button 2018-01-24 00:09:35 +05:30
Hans-Christoph Steiner
dd0f791e3f Merge branch 'android-app-links' into 'master'
set up "Android App Links" handling aka "Digital Asset Links"

See merge request fdroid/fdroidclient!626
2018-01-17 13:23:57 +00:00
Hans-Christoph Steiner
b1c435d3a4 Merge branch '1277-fix-screenshot-prevention' into 'master'
Make sure FLAG_SECURE is set on all activities when activated

Closes #1277

See merge request fdroid/fdroidclient!627
2018-01-15 15:27:44 +00:00
Torsten Grote
0922953bca
Make sure FLAG_SECURE is set on all activities when activated 2018-01-15 11:36:25 -02:00