From ee854bf7ad41dd33e1627d9df38353b5dc8c4d5c Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 25 Jul 2017 18:12:18 +0200 Subject: [PATCH] Replace deprecated ActionBarActivity by AppCompatActivity --- .../kdeconnect/Plugins/MousePadPlugin/MousePadActivity.java | 4 ++-- src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java | 4 ++-- .../NotificationsPlugin/NotificationFilterActivity.java | 4 ++-- .../Plugins/RunCommandPlugin/RunCommandActivity.java | 4 ++-- .../kde/kdeconnect/Plugins/SharePlugin/SendFileActivity.java | 4 ++-- .../kde/kdeconnect/UserInterface/CustomDevicesActivity.java | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadActivity.java b/src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadActivity.java index fa0c2b26..09a2d647 100644 --- a/src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadActivity.java +++ b/src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadActivity.java @@ -25,7 +25,7 @@ import android.content.SharedPreferences; import android.os.Build; import android.os.Bundle; import android.preference.PreferenceManager; -import android.support.v7.app.ActionBarActivity; +import android.support.v7.app.AppCompatActivity; import android.view.GestureDetector; import android.view.HapticFeedbackConstants; import android.view.Menu; @@ -39,7 +39,7 @@ import org.kde.kdeconnect.BackgroundService; import org.kde.kdeconnect.Device; import org.kde.kdeconnect_tp.R; -public class MousePadActivity extends ActionBarActivity implements GestureDetector.OnGestureListener, GestureDetector.OnDoubleTapListener, MousePadGestureDetector.OnGestureListener { +public class MousePadActivity extends AppCompatActivity implements GestureDetector.OnGestureListener, GestureDetector.OnDoubleTapListener, MousePadGestureDetector.OnGestureListener { String deviceId; private final static float MinDistanceToSendScroll = 2.5f; // touch gesture scroll diff --git a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java index 1a973af8..5e5e9609 100644 --- a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java +++ b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java @@ -26,7 +26,7 @@ import android.os.Handler; import android.os.Message; import android.preference.PreferenceManager; import android.support.annotation.NonNull; -import android.support.v7.app.ActionBarActivity; +import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.KeyEvent; import android.view.View; @@ -46,7 +46,7 @@ import org.kde.kdeconnect_tp.R; import java.util.List; -public class MprisActivity extends ActionBarActivity { +public class MprisActivity extends AppCompatActivity { private String deviceId; private final Handler positionSeekUpdateHandler = new Handler(); diff --git a/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationFilterActivity.java b/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationFilterActivity.java index 6355ad3f..9f4e5ca6 100644 --- a/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationFilterActivity.java +++ b/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationFilterActivity.java @@ -28,7 +28,7 @@ import android.graphics.Canvas; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.Bundle; -import android.support.v7.app.ActionBarActivity; +import android.support.v7.app.AppCompatActivity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -45,7 +45,7 @@ import java.util.Arrays; import java.util.Comparator; import java.util.List; -public class NotificationFilterActivity extends ActionBarActivity { +public class NotificationFilterActivity extends AppCompatActivity { AppDatabase appDatabase; diff --git a/src/org/kde/kdeconnect/Plugins/RunCommandPlugin/RunCommandActivity.java b/src/org/kde/kdeconnect/Plugins/RunCommandPlugin/RunCommandActivity.java index 101dcbda..1e346de9 100644 --- a/src/org/kde/kdeconnect/Plugins/RunCommandPlugin/RunCommandActivity.java +++ b/src/org/kde/kdeconnect/Plugins/RunCommandPlugin/RunCommandActivity.java @@ -22,7 +22,7 @@ package org.kde.kdeconnect.Plugins.RunCommandPlugin; import android.os.Bundle; -import android.support.v7.app.ActionBarActivity; +import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.AdapterView; @@ -39,7 +39,7 @@ import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; -public class RunCommandActivity extends ActionBarActivity { +public class RunCommandActivity extends AppCompatActivity { private String deviceId; diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/SendFileActivity.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/SendFileActivity.java index 3770aeea..044cb639 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/SendFileActivity.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/SendFileActivity.java @@ -26,7 +26,7 @@ import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; -import android.support.v7.app.ActionBarActivity; +import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.Toast; @@ -37,7 +37,7 @@ import org.kde.kdeconnect_tp.R; import java.util.ArrayList; -public class SendFileActivity extends ActionBarActivity { +public class SendFileActivity extends AppCompatActivity { String mDeviceId; diff --git a/src/org/kde/kdeconnect/UserInterface/CustomDevicesActivity.java b/src/org/kde/kdeconnect/UserInterface/CustomDevicesActivity.java index 8b390a90..1884cbcf 100644 --- a/src/org/kde/kdeconnect/UserInterface/CustomDevicesActivity.java +++ b/src/org/kde/kdeconnect/UserInterface/CustomDevicesActivity.java @@ -26,7 +26,7 @@ import android.content.DialogInterface; import android.os.Build; import android.os.Bundle; import android.preference.PreferenceManager; -import android.support.v7.app.ActionBarActivity; +import android.support.v7.app.AppCompatActivity; import android.view.KeyEvent; import android.view.View; import android.view.inputmethod.EditorInfo; @@ -42,7 +42,7 @@ import org.kde.kdeconnect_tp.R; import java.util.ArrayList; -public class CustomDevicesActivity extends ActionBarActivity { +public class CustomDevicesActivity extends AppCompatActivity { private static final String LOG_ID = "CustomDevicesActivity"; public static final String KEY_CUSTOM_DEVLIST_PREFERENCE = "device_list_preference";