879 Commits

Author SHA1 Message Date
Daniel Martí
d40781584b Update jmdns to 3.4.2 from 3.4.1+ trunk 2015-10-06 14:11:30 +02:00
Daniel Martí
77306e85e7 Make sure locale display names are capitalized 2015-10-06 12:34:09 +02:00
Daniel Martí
c4699df82a Merge branch 'theme-night' into 'master'
Add night theme

[Screenshot](http://i.imgur.com/gVK5M0G.png)

The screenshot is huge, so making it an image in markdown takes up a lot of space. Hence link.

See merge request !149
2015-10-06 10:33:18 +00:00
Daniel Martí
b94e2e3648 Support spaces and apostrophes in categories
Just like the hard-coded ones, for consistency.
2015-10-06 09:38:44 +02:00
Daniel Martí
5c4de9a166 Use the same format for hardcoded categories 2015-10-06 09:32:31 +02:00
Daniel Martí
c8bf53fd3b Use category_X for category name strings
This means more consistent and descriptive naming.
2015-10-06 09:18:15 +02:00
Daniel Martí
a052dc2ff1 Add night theme
Similar to the dark theme, but dropping blue in favour of very dark shades of
grey.

Removed colorEdgeEffect to simplify the sharing of the style between dark and
night themes. It should default to colorPrimary anyway, so we're good.

Fixes #345.
2015-10-06 09:03:11 +02:00
F-Droid Translatebot
ff9871f86f Pull translation updates from Weblate
Translators:

ageru                  French
Ajeje Brazorf          Sardinian
Enol Puente            Asturian
Olexandr Nesterenko    Ukrainian
relan                  Russian
Sérgio Marques         Portuguese (Portugal)
2015-10-06 09:00:46 +02:00
Jeff Mixon
36e0479967 Refresh layout of AppDetails screen
This change primarily affects the AppDetails links section to make them easier to click. It also strips down the UI a bit to provide a cleaner interface as well as some modest Material Design tweaks.

Fixes #389.
2015-10-05 22:38:57 +02:00
Toby Kurien
a0ad3ee07d Use correct downloadId when there are multiple
Fixes #447.
2015-10-05 18:15:10 +02:00
Daniel Martí
d7d13b26e0 Merge branch 'privileged-fixes' into 'master'
Privileged Extension fixes

Remove install/unistall commands, not needed and can cause problems

See merge request !152
2015-10-05 13:00:57 +00:00
Dominik Schürmann
dda3ea15b7 Privileged Extension: Remove install/unistall commands, not needed and can cause problems 2015-10-05 13:45:45 +02:00
Daniel Martí
12ed92aa01 Run a stricter optipng -o7 -zm1-9 on all pngs
This takes even longer, and catches some optimizations that -o7 had left out.
2015-10-04 17:51:34 +02:00
Daniel Martí
194dff8ab8 Run optipng -o7 on all png images
The android build process doesn't waste time running optipng and such, since
it takes minutes to run properly.

I had already ran this a few months ago. Running it again gives an apk ~15KB
smaller, which is welcome. This is because of the new images added.
2015-10-04 08:14:48 -07:00
F-Droid Translatebot
ee57a7b683 Pull translation updates from Weblate
Translators:

Ajeje Brazorf          Sardinian
Allan Nordhøy          Norwegian Bokmål
AtomiKe                French
Enol Puente            Asturian
jaksi                  Hungarian
Luis Ruiz              Spanish
Marc Ringel            German
Mário Castanheira      Portuguese (Portugal)
Marvin W               German
naofum                 Japanese
Olexandr Nesterenko    Ukrainian
Osoitz                 Basque
Reg                    Swedish
Thomas Lü              German
2015-10-04 08:02:25 -07:00
Daniel Martí
d7a30b4c34 Merge branch 'fix-430--download-without-content-length' into 'master'
Ddownload index, even when not presented with a Content-Length header (Fixes 430)

This works for the index download, but still does not work for downloading .apks correctly. That is, the Android Download Manager needs one of:

 * `Content-Length: ...`
 * `Connection: close`
 * `Transfer-Encoding: Chunked`

headers to be set to work correctly. In the absence of all three of these, problems ensue. In fact in my toy web server, even the `Connection: close` did not seem to work correctly, but I'd be happy to be corrected on that. Either way, this is an improvement on what was there before.

For reference, here is my toy PHP web server, which can be saved in the root of the F-Droid repo and invoked with:

> `php -S 10.0.0.4:8888 no-headers.php`

```
<?php

function streamFile( $file ) { $size     = filesize( $file );
        $contents = file_get_contents( $file );

        $buffer = (int)( $size / 5 );
        $bytes = 0;
        while ( $bytes < $size ) {
                $toStream = min( $size - $bytes, $buffer );
                echo substr( $contents, $bytes, $toStream );
                $bytes += $toStream;

                // Sleep to allow progress to be viewed in F-Droid
                sleep( 1 );
        }
}

$index    = "/fdroid/repo/index.jar";
$firefox  = "/fdroid/repo/fennec-40.0.multi.android-arm.apk";

// Test downloading a large .apk to see how it behaves
if ( $_SERVER['REQUEST_URI'] == "/fdroid/repo/fennec-40.0.multi.android-arm.apk" ) {
        $file = $firefox;
} else {
        $file = $index;
}

// Android Download Manager requires this (if not using Content-Length or Transfer-Encoding
// headers, but I can't seem to get it to work as expected).
header( "Connection: Close" );
streamFile( dirname( __FILE__ ) . $file );

```

See merge request !150
2015-10-04 15:00:07 +00:00
Peter Serwylo
19ae4a76c2 Use existing byte-format function.
Utils already contains a function to format bytes, removed duplicate
function.
2015-10-04 11:24:40 +11:00
Daniel Martí
d911aa2424 Merge branch 'feature/return-to-search-on-up' into 'master'
Return to SearchResults on "Up" navigation from AppDetails

When arriving to the AppDetails screen from SearchResults, the Up navigation should return to SearchResults screen and not its actual parent.

Not only is this behavior intuitive, it is a commonly accepted UX paradigm on the platform.

See merge request !147
2015-10-04 00:23:56 +00:00
Peter Serwylo
0164adc386 Don't depend on Content-Length headers to download (Fixes #430)
Instead, keep downloading until the `InputStream` returns -1.

Also, required updates to the UI so that when the download size is
not known, there is still a reasonable response to the user.

Note that this still fails when using the Android download manager
if the download attempts to get resumed, and the server did not
send a Connection: close, Content-Length, or Transfer-Encoding: Chunked
header.
2015-10-04 11:21:38 +11:00
Daniel Martí
f2b1583239 Bump to 0.97-alpha4 2015-10-02 17:34:42 -07:00
Daniel Martí
9bb0719a86 Update list of languages 2015-10-02 17:34:07 -07:00
F-Droid Translatebot
312d559e81 Pull translation updates from Weblate
Translators:

agilob                 Polish
Mário Castanheira      Portuguese
Mário Castanheira      Portuguese (Portugal)
Olexandr Nesterenko    Ukrainian
2015-10-02 17:33:30 -07:00
Daniel Martí
ef23e36ef1 Remove obsolete commented activities from AM.xml
They vanished long ago, no need to keep them in the manifest.
2015-10-02 16:58:38 -07:00
Daniel Martí
eea66e390b Make some fields final as suggested by AS
Most of these are fields initialized statically or in the constructor.
2015-10-02 16:41:08 -07:00
Daniel Martí
ebb991d1c6 Remove unused/unwanted empty default_repo trans 2015-10-02 16:35:50 -07:00
Daniel Martí
8d87031f81 Remove some more unused resources 2015-10-02 16:32:15 -07:00
Daniel Martí
2509f6f869 Remove all duplicated drawables form drawable/
These already have density-specific versions in drawable-*/, so having a
fallback in drawable/ makes no sense.
2015-10-02 16:30:32 -07:00
Daniel Martí
34ac244fdf Optimize imports 2015-10-02 16:16:30 -07:00
Daniel Martí
fc50fea18c Merge branch 'materialize-repository-details' into 'master'
Materialize repository details

Modernize the look of repo details. Enabled repo before and after:

![1a](https://gitlab.com/relan/fdroidclient/uploads/c3e7906508763081fcde5d0ebd1d7b7b/1a.png)
![1b](https://gitlab.com/relan/fdroidclient/uploads/6be4bd19cd375abf8df1f403464dfca0/1b.png)

Disabled repo before and after:

![2a](https://gitlab.com/relan/fdroidclient/uploads/6ff39317b598c3da3a814e60f74e75cb/2a.png)
![2b](https://gitlab.com/relan/fdroidclient/uploads/5354ec4c56dd3dc0958d7f002543ee9b/2b.png)


See merge request !148
2015-10-02 19:18:30 +00:00
Jeff Mixon
1daae076ec Return to SearchResults on "Up" navigation from AppDetails
When arriving to the AppDetails screen from SearchResults, the Up navigation should return to SearchResults screen and not its actual parent.
2015-10-02 11:39:16 +02:00
F-Droid Translatebot
3235ddd120 Pull translation updates from Weblate
Translators:

agilob                 Polish
Ajeje Brazorf          Sardinian
Enol Puente            Asturian
Full Name              Slovak
Lu Ca                  Sardinian
Marcelo Santana        Portuguese (Brazil)
Olexandr Nesterenko    Ukrainian
2015-10-01 20:07:53 -07:00
Daniel Martí
c8f495ec16 Move wait-for-emulator out of F-Droid subdir
It doesn't specifically apply only to the client.
2015-10-01 19:50:37 -07:00
relan
b3ae79e5c2 Correct the fingerprint caption
Do not use the word "repo" in captions because all the info in the
activity is about a repository.
2015-10-01 17:49:31 +03:00
relan
f9feab57cc Use monospace font for repository fingerprint
Bytes look better when they are properly aligned.
2015-10-01 17:47:05 +03:00
relan
2cc6661979 Make repository details look more Material
See http://www.google.com/design/spec/style/typography.html

Remove useless attributes; add styles with proper paddings, size and color
for caption and body text. Unfortunately, line spacing attributes are
supported only since Jelly Bean.
2015-10-01 17:38:20 +03:00
relan
4b2089b790 Use primary text color for key fingerprint
No need to grey it out.
2015-10-01 07:26:58 +03:00
relan
6f6bd44a38 Use static title for repository details activity
Repository name is usually too long to fit into the title. Besides, it's
also shown in the activity, no need to duplicate it.
2015-10-01 07:26:58 +03:00
relan
77f0dbb65a Correct the message about disabled repo
Explain that repository should be enabled.
2015-10-01 07:26:58 +03:00
relan
f5906f320f Remove update button
It's confusing because it does not update the repo details view.
2015-10-01 07:26:58 +03:00
relan
dbd69444f1 Set side paddings in LinearLayout, not in ScrollView
This fixes scrollbar position.
2015-10-01 07:26:58 +03:00
relan
4ecb253c80 Remove useless RelativeLayout 2015-10-01 07:26:58 +03:00
relan
fe3a739fe3 Fix up indentation in repodetails.xml 2015-10-01 07:26:58 +03:00
Daniel Martí
998d99eee0 Be consistent about strings being capitalized
These strings aren't completely wrong being all lowercase, but better be
consistent.
2015-09-30 13:45:03 -07:00
Daniel Martí
be1b68153f Don't use emoticons in strings 2015-09-30 13:40:52 -07:00
Daniel Martí
ae6f71f482 Apply string changes from !145 to new translations 2015-09-30 13:26:48 -07:00
F-Droid Translatebot
03e98dbb10 Pull translation updates from Weblate
Translators:

agilob          Polish
Daniel Martí    Catalan
2015-09-30 13:21:18 -07:00
Daniel Martí
e856a9be3b Don't end setting summaries with periods 2015-09-30 13:20:35 -07:00
Daniel Martí
8f6af2be55 Merge branch 'improve-privileged' of https://gitlab.com/dschuermann/fdroidclient 2015-09-30 11:40:58 -07:00
Daniel Martí
d77fce9d80 Don't use DownloadManager on Android 2.3
Fixes apk downloads crashing on 2.3 devices as spotted in the comments at
issue #421.
2015-09-30 11:29:04 -07:00
Dominik Schürmann
6de7d9f3f0 proper const naming 2015-09-30 07:41:32 +02:00