From 1b726018d3b9ad18b492811e82b93dfcc5152017 Mon Sep 17 00:00:00 2001 From: Vineet Garg Date: Thu, 25 Jun 2015 04:20:03 +0530 Subject: [PATCH] Fixed bugs pointed out by Albert on CR --- build.gradle | 2 - res/layout/activity_pair.xml | 33 ----- res/values/strings.xml | 3 +- .../kdeconnect/Backends/BaseLinkProvider.java | 1 + .../Backends/BasePairingHandler.java | 35 +++++ .../Backends/LanBackend/LanLink.java | 1 + .../Backends/LanBackend/LanLinkProvider.java | 121 +++++++++++------- .../LanBackend/LanPairingHandler.java | 90 +++++++++++++ .../LoopbackBackend/LoopbackLinkProvider.java | 1 + .../LoopbackPairingHandler.java | 27 ++++ src/org/kde/kdeconnect/BackgroundService.java | 7 +- src/org/kde/kdeconnect/Device.java | 80 +++++++----- .../Helpers/SecurityHelpers/SslHelper.java | 18 +++ src/org/kde/kdeconnect/NetworkPackage.java | 19 +-- .../UserInterface/PairActivity.java | 71 +++++----- 15 files changed, 336 insertions(+), 173 deletions(-) create mode 100644 src/org/kde/kdeconnect/Backends/BasePairingHandler.java create mode 100644 src/org/kde/kdeconnect/Backends/LanBackend/LanPairingHandler.java create mode 100644 src/org/kde/kdeconnect/Backends/LoopbackBackend/LoopbackPairingHandler.java diff --git a/build.gradle b/build.gradle index e8dfd050..b0214fe6 100644 --- a/build.gradle +++ b/build.gradle @@ -54,9 +54,7 @@ dependencies { compile 'org.apache.sshd:sshd-core:0.8.0' compile 'io.netty:netty-all:4.0.23.Final' compile 'org.bouncycastle:bcpkix-jdk15on:1.52' - androidTestCompile 'org.mockito:mockito-core:1.10.19' - // Because mockito has some problems with dex environment androidTestCompile 'com.google.dexmaker:dexmaker:1.1' androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.1' diff --git a/res/layout/activity_pair.xml b/res/layout/activity_pair.xml index 30db79f6..6b73edc3 100644 --- a/res/layout/activity_pair.xml +++ b/res/layout/activity_pair.xml @@ -25,39 +25,6 @@ android:layout_gravity="left|center_vertical" /> - - - - - - - - - -