1690 Commits

Author SHA1 Message Date
Emmanuel Engelhart
1c59d54c9f Fix script to make screenshots 2018-01-17 13:53:35 +01:00
Emmanuel Engelhart
fca5d525a0 Better zim_manager view title #302 2018-01-17 12:21:14 +01:00
Emmanuel Engelhart
88ee816ab5 Update UI translations 2018-01-17 12:01:41 +01:00
Albert221
108af1096b Move majority of hardcoded consts to separate file 2018-01-14 16:56:47 +00:00
Albert221
8ca00227fd Move bookmark icon to bottom bar when visible
Resolves #337.
2018-01-13 15:08:40 +00:00
mhutti1
915bafc549 Use backup cache mechanism to play videos split between files 2018-01-04 22:10:30 +00:00
mhutti1
25a8cb97e1 Use virtual video location too play ZIM videos 2018-01-04 22:10:30 +00:00
Julian Harty
726ef5d0b3 A partial improvement to deal with problematic data in the library file. Does not seem to catch JNI exceptions/crashes. To be continued... 2017-12-16 11:15:45 +00:00
Julian Harty
eeba917fe2 Improved the UI: users can now understand the purpose of the WiFi
option.

Duplicated the text that appears on the preferences in the summary so
that the user can actually read what it says. This particularly affects
smaller screened device. It might be worth revising the title, however
that'd then need any changes to be retranslated. This change isn't ideal
(duplicating content on the screen) however it seems practical and
helpful. You're welcome to help improve it.
2017-12-16 09:35:00 +00:00
Julian Harty
83eccf9704 Removed unused imports. 2017-12-16 06:24:22 +00:00
Automata-Development
44d1a11236 Fixed formatting issues 2017-12-15 12:50:51 +00:00
Automata-Development
fe3c0b83b7 Bug fixes 2017-12-15 12:50:51 +00:00
Automata-Development
ed24885f72 Changed settings screen to use unified language select dialog. 2017-12-15 12:50:51 +00:00
Automata-Development
e0ec00b3d1 Created custom LanguageSelectDialog class
Created custom LanguageSelectDialog class. This can be reused in multiple places. The library screen has been modified to use this class. Settings screen still requires modification.
2017-12-15 12:50:51 +00:00
Julian Harty
b9c78f7ca7 Replaced hardcoded URL with hostname to make tests more portable. 2017-12-15 11:10:16 +00:00
Julian Harty
4977ec9a3c Removed unnecessary import statement. 2017-12-15 10:05:50 +00:00
Julian Harty
c10d836370 Bug fix for #320 triggered when the library contained 1 item.
A sample library_zim.xml is available at
https://github.com/kiwix/testfiles/blob/master/libraryfiles/one_item_in_library/library_zim.xml

The bug seems to have been introduced inadvertently in
b9930252e1
which returned a null to `getView(...)`

I've left a key log statement as this was one clue (after checking
various other areas of the codebase) that indicated there might be a
problem related to the number of entries rather than the attributes of
the item. I aim to revise the format of the log message as part of a
wider update on logging.
2017-12-15 10:05:50 +00:00
mhutti1
7be9f61b83 Improve kiwixlib gradle config 2017-12-14 16:39:10 +00:00
mhutti1
38be99f2cf Potential fix for travis crash 2017-12-14 12:09:49 +00:00
mhutti1
ffe3bf15a4 Add flavour fallback to allow modules like kiwixlib to integrate 2017-12-14 12:09:49 +00:00
mhutti1
b9930252e1 Fix library test content matcher 2017-12-04 23:19:01 +00:00
mhutti1
8c98e885d8 Update gitignore 2017-12-04 19:39:37 +00:00
Isaac Hutt
6335d524de
Merge branch 'master' into search-language-fix 2017-12-04 19:28:15 +00:00
Automata-Development
3115867a5b Fixed search screen
Fixed issue #255 (https://github.com/kiwix/kiwix-android/issues/255). Results in the selected language(s) are now displayed separately from results in unselected languages.
2017-12-03 17:45:11 -07:00
NeonKnight
03f27f6580 Fixed duplicate search (#301)
* Fixed the Duplicate Search Bug

* Fixed a Variable Name

* Updated Indent Spacing

* Fixed Indenting Again
2017-12-01 14:27:30 +00:00
David Sn
44a2e29099 Replace the spinner with a SwipeRefreshLayout
* zim_manager: Replace RelativeLayout with SwipeRefreshLayout

Signed-off-by: David Sn <divad.nnamtdeis@gmail.com>

* Replace refresh button with swipe gesture

Signed-off-by: David Sn <divad.nnamtdeis@gmail.com>

* Remove "progress bar" in favor of swipe animation

Signed-off-by: David Sn <divad.nnamtdeis@gmail.com>

* Fix not refreshing list if user has swiped to refresh

Signed-off-by: David Sn <divad.nnamtdeis@gmail.com>

* Fix "no files found" after downloading a file

Signed-off-by: David Sn <divad.nnamtdeis@gmail.com>

* Remove menu_rescan_fs from tests and replace click with swipeDown

Signed-off-by: David Sn <divad.nnamtdeis@gmail.com>

* Add refresh on swipe for online content

Signed-off-by: David Sn <divad.nnamtdeis@gmail.com>

* Disable swipe to refresh if no network connection

Prevents the user from requesting a refresh when the list isn't loaded yet.

* Rename swiperefresh to seperate id for both tabs

Signed-off-by: David Sn <divad.nnamtdeis@gmail.com>
2017-11-30 22:28:46 +00:00
Albert
4760510aa2 Fix #156 (#296) 2017-11-30 01:15:28 +00:00
Albert221
1dc61691dc Increase alpha for back to top a little bit 2017-11-29 15:40:30 +00:00
Albert221
ab5d2857f7 Fix CS 2017-11-29 15:40:30 +00:00
Albert221
5d7713fe59 Improve back to top button redability in night mode 2017-11-29 15:40:30 +00:00
Albert
0e0c90080e External links popup (#294)
* Add settings switch for external links popup

* Add warning popup when entering external links

* Fix typo

This reverts commit 9da984c72e3867dd63e2d8e9e38cd9020e633844.
2017-11-28 20:33:35 +00:00
Isaac Hutt
9f61c49c29
Mhutti1/multizim (#290)
* Integerate new JNI changes

* Update CHANGELOG

* Add code to start using multizim

* Fix some merge conflicts

* Improve merge
2017-11-28 16:00:51 +00:00
mhutti1
9325810600 Improve tests 2017-11-28 01:01:04 +00:00
mhutti1
67c449c028 Possible fix for 2.3 crash 2017-11-28 01:01:04 +00:00
Isaac Hutt
46727a98a5
Update README.md 2017-11-28 00:56:31 +00:00
mhutti1
94c79b5830 Disable jni mocking temporarily 2017-11-27 20:16:25 +00:00
Isaac Hutt
c74a488b76 Update build.gradle 2017-11-27 00:04:55 +00:00
mhutti1
924cb73a85 Update gradle config 2017-11-27 00:04:55 +00:00
mhutti1
afaa1ab727 Fix small Zim manager issues 2017-11-26 20:14:27 +00:00
mhutti1
6aebb7356b Wipe book database on this update 2017-11-09 19:20:27 +00:00
Kelson
2ded689524 Merge pull request #278 from kiwix/julianharty/fix_contributors
Fixed my typo in my email address (oops)
2017-10-09 21:41:28 +02:00
Julian Harty
462d6c1fe7 Fixed my typo in my email address (oops) 2017-10-09 20:25:34 +01:00
Emmanuel Engelhart
6c9cc433a5 UI strings update 2017-10-05 15:37:18 +01:00
mhutti1
ebf995b3f7 Move download completion logic to onComplete subscription 2017-10-05 15:07:56 +01:00
mhutti1
d214ff9450 Bump kiwixlib version 2017-10-05 14:45:59 +01:00
Julian Harty
b3ff110314 Adding Joe and Julian as contributors. 2017-10-04 14:32:44 +01:00
Julian Harty
86f0da12c6 Added limited (basic) Http request and response logging to augment the
current logging used in the DownloadService. Hopefully the extra log
messages will help us debug problems when tests fail, particularly
remotely e.g. on BitBar's TestDroid service.

The logs are local to the device and don't contain any sensitive
additional information. The extra information helps diagnose
network issues when they occur during testing.
2017-10-04 14:05:57 +01:00
Kelson
09f9ab8d45 Merge pull request #269 from kiwix/video_night-mode
Fix night-mode for videos #266
2017-10-04 09:39:33 +02:00
Emmanuel Engelhart
3ea91e3173 Fix night-mode for videos #266 2017-10-01 14:33:18 +02:00
Julian Harty
1d1691cd55 I was irked by having a compile dependency on a testing library.
Addressing the cause took several hours, it seemed to be there to
address other side-effects. In the end I discovered we had incompatible
library versions which weren't reconciled by Gradle unless the
extraneous dependency was there.

The error was described in
https://sites.google.com/a/android.com/tools/tech-docs/new-build-system/user-guide#TOC-Resolving-conflicts-between-main-and-test-APK

The resolution was to align the version numbers for various Android
support libraries to a common value: 25.4.0 for now although there are
newer versions so we might want to migrate to the current releases soon.
I applied the concepts others use, which is to specify the version once
and use it throughout, see
https://segunfamisa.com/posts/android-gradle-extra-properties for a
concise example.

For info on the latest support and testing libraries see
https://developer.android.com/topic/libraries/support-library/revisions.html

https://developer.android.com/topic/libraries/testing-support-library/release-notes.html

We might also want to update our builds to the latest release of
Espresso.
2017-09-22 16:53:27 +04:00