Commit Graph

132 Commits

Author SHA1 Message Date
smdyv 7b0948383a Add margins to toolbar 2022-02-20 12:23:13 -05:00
smdyv 1fbfc86199 Disable animated layout changes for the top app bar
At least temporarily. Prevents unsightly layout shifts
2022-02-20 08:04:26 -05:00
smdyv 8453e2f2c6 Use M3 theme 2022-02-19 09:06:31 -05:00
smdyv 6468f5012f Use default window color in dark theme 2022-02-19 08:58:03 -05:00
MHShetty c7a0ae858e Use a grey background while viewing a document 2022-02-19 08:48:09 -05:00
smdyv f07b6350df Center canvas 2022-02-19 08:37:38 -05:00
smdyv c743c0d6a7 Create layout for the PDF viewer activity
Updating insets is no longer necessary because the layout reserves the
space for the top app bar and frees it up in full-screen mode so the
WebView can fill the entire screen.
2022-02-19 08:32:15 -05:00
smdyv fdf2cf8c27 Use view binding instead of findViewById
Provides null safety and type safety
2022-02-18 06:09:22 -05:00
MHShetty 5f5e1682a0 Add dark app theme support 2022-02-13 04:19:20 -05:00
smdyv b5a05055e9 Replace launcher icon 2022-02-09 07:07:39 -05:00
Daniel Micay 993923ff92 Revert "solve API 30 deprecation with getSystemWindowInsetTop"
This reverts commit 851dd55d43.
2022-02-07 00:31:22 -05:00
flawedworld 17db928149 Update Play Store icon 2022-02-07 00:27:23 -05:00
June 5984291b44 Replace deprecated usages of getActivity with requireActivity, replace onClick with lambda, and use NonNull
Signed-off-by: June <june@eridan.me>
2022-02-05 23:51:21 -05:00
June 61247aaa6a Explicitly require NonNull in areas where it shouldn't/never will be
Signed-off-by: June <june@eridan.me>
2022-02-05 23:50:54 -05:00
June 259a2afe7a Don't use C-style arrays, use parseBoolean, remove redundant explicit type
Signed-off-by: June <june@eridan.me>
2022-02-05 23:50:54 -05:00
June 91dbb9adfb Don't use mWebView to set WebView debugging
Signed-off-by: June <june@eridan.me>
2022-02-05 23:50:54 -05:00
June 851dd55d43 solve API 30 deprecation with getSystemWindowInsetTop
Signed-off-by: June <june@eridan.me>
2022-02-05 23:50:54 -05:00
June 5494376175 Use expression lambda instead of statement lambda
Signed-off-by: June <june@eridan.me>
2022-02-05 23:50:54 -05:00
flawedworld a8828e3878 replace icon 2022-02-05 19:23:36 -05:00
June f81a71bf3d Remove unused label 2022-02-03 11:09:57 -05:00
June 9dca01a0ee Replace valueOf with their respective data type functions 2022-02-03 11:09:57 -05:00
June 9596bcf082 add pdfjs-dist submodule and symlink minified files
This should make the update process of pdf.js far easier and more maintainable as we can just use the pdfjs-dist tags

Signed-off-by: June <june@eridan.me>
2022-01-22 22:12:31 -05:00
Daniel Micay e4b107e1e4 update text layer CSS 2021-11-24 22:22:33 -05:00
Daniel Micay c7329644b2 disable idle-detection in Permissions-Policy 2021-11-24 02:19:18 -05:00
Daniel Micay 1c69280219 update pdf.js to 2.10.377 2021-11-21 17:30:18 -05:00
Daniel Micay 2cdd5f967e handle deprecation of resource ids as constants 2021-11-21 16:02:22 -05:00
Daniel Micay fb44da509c return true for action_open 2021-11-21 15:59:45 -05:00
Daniel Micay 6a9f7e11b1 remove setSaveFormData since minSdkVersion >= 26 2021-11-21 15:54:29 -05:00
Daniel Micay 216195954e enable web content debugging in debug builds 2021-11-21 15:49:26 -05:00
Daniel Micay bcef367a58 replace Feature-Policy with Permissions-Policy 2021-11-21 15:45:58 -05:00
Daniel Micay 262d110266 remove legacy script-src directive 2021-11-21 15:41:15 -05:00
Daniel Micay 0d08f3606d explicitly set pdf.js worker to avoid deprecation 2021-11-21 15:40:04 -05:00
Daniel Micay a68bac16d6 enable strict mode for resource shrinking 2021-11-21 14:54:17 -05:00
smdyv 9ed8422ae7 Renew Google Play icon 2021-11-21 14:46:14 -05:00
smdyv e41739832e Delete legacy launcher icons
API level 26 introduces adaptive launcher icons.
Our minSdkVersion is 26.
2021-11-21 14:33:22 -05:00
smdyv 4ca7135287 Renew launcher icon 2021-11-21 14:33:22 -05:00
June 90b2b5f989 target API 31
API 31 requires intents to set android:exported true or false

Signed-off-by: June <zanthed@riseup.net>
2021-09-29 09:37:57 -04:00
Daniel Micay 31ca9b5c9f raise minSdkVersion to 26 2021-02-10 23:09:40 -05:00
anupritaisno1 9547b55a9a update pdf.js to 2.5.207 release
Signed-off-by: anupritaisno1 <www.anuprita804@gmail.com>
2020-11-10 18:20:55 -05:00
inthewaves 42de305b7c move initial showSystemUi call to loadPdf
The reasoning for calling showSystemUi() in the onCreate method
before was to make the transitions for immersive mode more smooth.
However, it's only needed when the PDF has actually loaded, i.e. when
the immersive mode makes sense to use.

Before, Snackbars were partially covered by the navigation UI due to the
showSystemUi() setting the View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
flag. Moving it so that the function is only called when a PDF is loaded
fixes this issue.
2020-08-28 21:49:05 -04:00
Atrate f3d322ddc1 Mime -> MIME
Signed-off-by: Atrate <Atrate@protonmail.com>
2020-08-28 21:45:30 -04:00
anupritaisno1 64407e3a85 update pdf.js to 2.4.456
Signed-off-by: anupritaisno1 <www.anuprita804@gmail.com>
2020-06-01 15:49:46 -04:00
Daniel Micay f7956bd0da Revert "Revert "reuse findViewById result to avoid lint error""
This reverts commit c8058db470.
2020-05-28 14:42:40 -04:00
Daniel Micay b968ff2596 move code checking for file scheme 2020-05-28 14:02:44 -04:00
Daniel Micay c8058db470 Revert "reuse findViewById result to avoid lint error"
This reverts commit b5e9dcc78b.
2020-05-28 13:51:31 -04:00
Daniel Micay b5e9dcc78b reuse findViewById result to avoid lint error 2020-05-17 06:37:27 -04:00
Daniel Micay 1fd99ae3b4 add user-facing error reporting 2020-04-11 13:21:36 -04:00
Daniel Micay 89ce54c53a add early check for file URI 2020-04-11 12:28:51 -04:00
Daniel Micay d6308c409a add missing error logging 2020-04-11 12:28:21 -04:00
Antoine d'Aligny 46117e6e20 fix enabling / disabling next/previous actions 2020-04-05 00:06:49 -04:00
Daniel Micay 69723939eb properly enforce zoom limits again 2020-04-04 12:35:09 -04:00
Daniel Micay 046ce6172c treat zoom actions as ending zoom 2020-04-04 12:22:51 -04:00
Daniel Micay c6a90066a2 support non-step-based zooming 2020-04-04 12:21:25 -04:00
Daniel Micay f780734c9c use CSS zooming until end of zoom gesture 2020-04-04 12:15:29 -04:00
Daniel Micay 69a6219634 remove concept of zoom steps from API 2020-04-04 11:57:15 -04:00
Daniel Micay 0f05f9e1f4 wire up method for ending zoom 2020-04-04 11:54:34 -04:00
Daniel Micay 5524da3ad3 remove unnecessary super call 2020-04-04 11:47:00 -04:00
Daniel Micay 760d6f1186 avoid multiple renders per zoom 2020-04-04 11:41:06 -04:00
Daniel Micay 371cb3efdc fix error made during migration to zoom ratio 2020-04-04 11:34:12 -04:00
Daniel Micay e98398749e rename lazy to zoom and check it for scrollTo 2020-04-04 11:31:16 -04:00
Daniel Micay db025d7851 minor style fixes 2020-04-04 11:20:42 -04:00
Antoine d'Aligny e509660d7e Preparation for ratio zoom 2020-04-04 11:20:42 -04:00
Antoine d'Aligny f7289be8a5 Move gesture detectors and listeners in the GestureHelper class/file 2020-04-04 11:20:42 -04:00
Antoine d'Aligny 0ac0102a8a Add pinch to zoom touch gestures 2020-04-04 11:20:40 -04:00
Daniel Micay 7a985410cb update appcompat to 1.1.0 2019-10-05 18:08:55 -04:00
Daniel Micay 1da56e759f set fullscreen padding to the proper width 2019-08-20 12:47:01 -04:00
Daniel Micay be2439be65 add padding to account for fullscreen mode 2019-08-20 12:40:12 -04:00
Daniel Micay 4fad395606 initialize for immersive mode 2019-08-16 20:17:40 -04:00
Tom G 5fc3f790a6 add immersive mode 2019-08-16 19:42:51 -04:00
Daniel Micay f6a4767d37 update pdf.js to 2.1.166 2019-08-16 01:21:12 -04:00
Tommy-Geenexus 5b327d4d97 Add skip to first/last page option 2019-07-01 14:19:55 -04:00
Daniel Micay 463c9a1e0a rotation can't currently use lazy rendering 2019-07-01 02:13:47 -04:00
Daniel Micay f5abc23800 replace != and == with !== and === 2019-07-01 01:56:54 -04:00
Daniel Micay b10296cb87 add nosniff header 2019-07-01 01:52:40 -04:00
Daniel Micay 724474a703 remove unnecessary and legacy Firefox workaround 2019-07-01 01:49:24 -04:00
Daniel Micay 2516fa8e2f save / restore document orientation state 2019-07-01 01:46:05 -04:00
Daniel Micay 2ebb8cab87 optimize launcher images 2019-06-30 02:33:27 -04:00
Tommy-Geenexus 4ba712409a Add rotate document option 2019-06-30 02:31:29 -04:00
Tommy-Geenexus 6a03e84622 Don't hold static reference to fragment 2019-06-30 01:34:39 -04:00
Daniel Micay 4c36a7bb57 reuse code path for handling JavaScript assets 2019-06-29 20:03:46 -04:00
Daniel Micay cc8cce29f5 add placeholder feature graphic 2019-06-28 00:23:25 -04:00
Daniel Micay d7eed01e80 initial commit with overhauled / rebranded project 2019-06-27 23:22:08 -04:00