Nicolas Fella
050081e4c8
Fix build
2018-05-20 23:32:08 +02:00
Matthijs Tijink
f319e402f0
Add a foreground notification to the background service
...
Summary:
This way, the user always knows that KDE Connect is running (and what devices are connected). This is a requirement in Android Oreo.
Implements task T6218.
Reviewers: #kde_connect, nicolasfella
Subscribers: apol, albertvaka, nicolasfella
Differential Revision: https://phabricator.kde.org/D8966
2018-05-20 23:32:08 +02:00
Nicolas Fella
e712c69e15
Use lambdas where possible
...
Summary: Let Android Studio replace anonymous types with lambdas. No manual code change.
Test Plan: Compile and superficial behaviour test
Reviewers: #kde_connect, philipc
Reviewed By: #kde_connect, philipc
Subscribers: philipc, #kde_connect
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D12229
2018-05-09 14:03:08 +02:00
Albert Vaca
9b70e1e61f
Rename NetworkPackage -> NetworkPacket
...
Summary: KDE Connect, now with correct naming!
Test Plan: It still builds.
Reviewers: #kde_connect, apol, nicolasfella
Reviewed By: #kde_connect, apol, nicolasfella
Subscribers: nicolasfella, apol
Differential Revision: https://phabricator.kde.org/D11035
2018-03-05 20:07:29 +01:00
Nicolas Fella
fa5a37c472
Apply coding style to whole project
...
Summary: Sorry for the huge diff, but all I did was applying Android Studio's 'Reformat Code' to all files. If everyone does that before submitting a patch we can keep it clean easily.
Test Plan: Compiles
Reviewers: #kde_connect, mtijink
Reviewed By: #kde_connect, mtijink
Subscribers: mtijink, sredman, #kde_connect
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D10905
2018-03-03 16:09:52 +01:00
Nicolas Fella
bea90521c5
Direct Share
...
Summary:
Support Android 6 direct share.
BUG:362266
BackgroundService is a SIngleton now. This should only be used if strictly necessary.
Test Plan: Pick a random app with a share button, look for device entries in Sharing options (might not be there because other sharing options have higher priority)
Reviewers: #kde_connect, albertvaka
Reviewed By: #kde_connect, albertvaka
Subscribers: albertvaka, #kde_connect
Tags: #kde_connect
Differential Revision: https://phabricator.kde.org/D6743
2017-07-29 11:33:45 +02:00
Saikrishna Arcot
981685e926
Avoid NPE when pluginList is still getting updated, by starting the receiving thread after the pluginList is updated.
...
Also have the pluginList be initialized to an empty map.
REVIEW: 130140
2017-05-25 22:19:08 +02:00
Àlex Fiestas
20455f74ab
Add Bluetooth support
...
This is a ported version of the patch submited in review:
https://git.reviewboard.kde.org/r/128270
It is disabled by default.
REVIEW: 128270
2017-05-25 00:08:29 +02:00
Albert Vaca
b24010a86e
Try a different approach to detect when on mobile data.
2017-02-25 21:22:20 +01:00
Albert Vaca
e2a932558a
Revert "Do not broadcast in 3G + info message"
...
As it couldn't be any other way, this broke somebody's workflow.
This reverts commit 440a12f86c8db63cc3a85d3a4e05c3e62eb31f19.
2017-02-25 21:07:04 +01:00
Albert Vaca
440a12f86c
Do not broadcast in 3G + info message
2017-02-18 19:06:37 +01:00
Albert Vaca
036737deae
Unused imports
2016-12-11 14:00:55 +01:00
Albert Vaca
4b7c5fb85a
Fixed loopback link
2016-07-06 18:43:41 +02:00
Albert Vaca
b2d0e57641
Missing start() call on a thread!
2016-06-17 10:02:22 +02:00
Albert Vaca
71dc713578
Getting rid of netty WIP
2016-06-16 23:48:16 +02:00
Albert Vaca
0836453c35
Project-wise optimize imports
2016-06-09 13:42:54 +02:00
Albert Vaca
c0d21e986c
Re-use existing link instead of creating a new one
2016-03-02 11:39:49 -08:00
Albert Vaca
1ca09d7f58
Fixing build
2016-01-10 03:16:14 -08:00
Albert Vaca
f8da00b9b5
Merge branch 'master' into sslmaster
2015-12-02 09:46:22 -08:00
Malte S. Stretz
61ded9469c
Always unlock all mutexes
...
In a few places ReentrantLocks are used as mutexes. In case of an
exception happening in the critical section the locks are never
released though. A ReentrantLock should (almost) always be followed
by a try-finally block as documented in
http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/ReentrantLock.html
2015-10-27 11:44:04 -07:00
Albert Vaca
24ca5f706a
Fixed pairing requests not being displayed after clicking the notification
2015-09-12 13:21:06 -07:00
Albert Vaca
f5725b7c8d
Merge branch 'master' into ssl
...
# Conflicts:
# build.gradle
# src/org/kde/kdeconnect/Backends/BaseLink.java
# src/org/kde/kdeconnect/Backends/BaseLinkProvider.java
# src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java
# src/org/kde/kdeconnect/Backends/LanBackend/LanLinkProvider.java
# src/org/kde/kdeconnect/Backends/LoopbackBackend/LoopbackLink.java
# src/org/kde/kdeconnect/BackgroundService.java
# src/org/kde/kdeconnect/Device.java
# src/org/kde/kdeconnect/Helpers/DeviceHelper.java
# src/org/kde/kdeconnect/UserInterface/DeviceActivity.java
# src/org/kde/kdeconnect/UserInterface/PairActivity.java
# tests/org/kde/kdeconnect/LanLinkProviderTest.java
# tests/org/kde/kdeconnect/LanLinkTest.java
2015-09-11 09:24:35 -07:00
Albert Vaca
b1ef93a90c
Fixed drawer's updateComputerList not being called when there were changes
...
Plus removed some unnecessary calls in other places.
2015-09-10 07:48:32 -07:00
Albert Vaca
55ae564023
Removed logs
2015-09-09 12:34:50 -07:00
Albert Vaca
24561b58f9
The discovery now should be enabled while navigating the app UI
2015-09-09 12:34:42 -07:00
Albert Vaca
d35623a28a
Fixed discoverable mode dropping connections that we didn't create
2015-09-09 03:31:39 -07:00
Albert Vaca
0b8500338a
Removed some logging
2015-09-09 03:22:34 -07:00
Albert Vaca
d5114c2238
Don't disconnect paired devices!
2015-09-09 02:03:36 -07:00
Aleix Pol
628142307f
Reduce the amount of traffic we get
...
Only connect to the non-paired devices when we're on discovery mode,
otherwise disconnect from them.
Reviewed by Albert Vaca
BUG: 352424
2015-09-09 00:45:56 +02:00
Albert Vaca
c535637b45
Fixed PairingFragment and MaterialAct stealing the callback from each other
2015-09-07 02:16:23 -07:00
Albert Vaca
e1f3ac9491
Removed some unused imports
2015-09-07 02:16:23 -07:00
Albert Vaca
53d9b85d8b
It's now possible to rename your device from the new UI
2015-09-07 02:16:23 -07:00
Vineet Garg
50fcea2cd9
Removed conscrypt
...
Fixed issue in netty, currently use custom build netty
Removed multi dex
2015-08-17 22:56:18 +05:30
Albert Vaca
a15b06cdc7
Minor fixes (mostly cosmetic) as per Android Lint analysis
2015-08-10 00:26:58 -07:00
Vineet Garg
72ad2e010c
Try when adding security provider
2015-06-28 21:30:06 +05:30
Vineet Garg
67227f4aa0
Added conscrypt readme
2015-06-28 20:40:45 +05:30
Vineet Garg
d93eb5d71e
Added conscrypt, open ssl based provider for android
...
Fixed some isssues in CR
2015-06-28 20:07:05 +05:30
Vineet Garg
1b726018d3
Fixed bugs pointed out by Albert on CR
2015-06-25 04:20:03 +05:30
Vineet Garg
e14f5a0df1
Ssl support added
...
Showing high cpu usage on some devices
2015-06-20 04:09:02 +05:30
Albert Vaca
a5e9b29e20
Don't call mutex.lock in the main thread
2015-06-06 00:32:05 -07:00
Albert Vaca
a0b82d17b4
Added some logging to help debugging an issue, now commented for future use
...
Also we prepend KDE/ to these logs to ease filtering them
2015-04-04 11:37:12 -07:00
Albert Vaca
86261bd105
Lint fixes
2015-02-01 12:31:42 -08:00
Albert Vaca
f01811446a
Migrated project to latest Android SDK and moved sources out of 'main' dir
...
Sorry for the conflicts caused by moving the sources!
2014-11-22 17:04:37 -08:00