Commit graph

5 commits

Author SHA1 Message Date
Alexander Lohnau 2f193a63de Convert license headers to SPDX 2021-06-10 08:11:56 +00:00
Albert Astals Cid 19d98d6a74 Run clang-format
find . \( -name "*.cpp" -or -name "*.h"  -or -name "*.c"  -or -name "*.cc" \) -exec clang-format -i {} \;

If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
2020-07-11 09:17:33 +02:00
Volker Krause a9540cf3ce Fix launching Okular by opening a document from the file browser
Summary:
There's two issues here:
- Activity::onCreate triggered before the C++ side was loaded, so the
  call to C++ failed (causing a crash). So delay that until we are ready.
- The static instance of URIHandler in the header caused it to duplicate
  into each translation unit, causing main.cpp to not see what android.cpp
  wrote into it.

Subscribers: okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D18399
2019-02-04 18:32:04 +01:00
Aleix Pol 885e1f2269 Android: Make it possible to open documents from Android
Include ad-hoc code to open files on Android.
2018-05-18 01:44:18 +02:00
Aleix Pol 356229a74f Kirigami/Android: Try to get all android-specific code together
Create a separate android file for such code
2018-05-17 19:58:47 +02:00