mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-01 14:45:08 +00:00
Removed two error dialogs that were not used
This commit is contained in:
@@ -3,7 +3,6 @@ package org.kde.kdeconnect.Plugins.ClibpoardPlugin;
|
|||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.DialogInterface;
|
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
|
|
||||||
@@ -68,18 +67,7 @@ public class ClipboardPlugin extends Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AlertDialog getErrorDialog(Context baseContext) {
|
public AlertDialog getErrorDialog(Context baseContext) { return null; }
|
||||||
return new AlertDialog.Builder(baseContext)
|
|
||||||
.setTitle(R.string.pref_plugin_clipboard)
|
|
||||||
.setMessage(R.string.plugin_not_available)
|
|
||||||
.setPositiveButton("Ok",new DialogInterface.OnClickListener() {
|
|
||||||
@Override
|
|
||||||
public void onClick(DialogInterface dialogInterface, int i) {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.create();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Button getInterfaceButton(Activity activity) {
|
public Button getInterfaceButton(Activity activity) {
|
||||||
|
@@ -3,7 +3,6 @@ package org.kde.kdeconnect.Plugins.MousePadPlugin;
|
|||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.DialogInterface;
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@@ -56,18 +55,7 @@ public class MousePadPlugin extends Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AlertDialog getErrorDialog(Context baseContext) {
|
public AlertDialog getErrorDialog(Context baseContext) { return null; }
|
||||||
return new AlertDialog.Builder(baseContext)
|
|
||||||
.setTitle(R.string.pref_plugin_mousepad)
|
|
||||||
.setMessage(R.string.plugin_not_available)
|
|
||||||
.setPositiveButton("Ok",new DialogInterface.OnClickListener() {
|
|
||||||
@Override
|
|
||||||
public void onClick(DialogInterface dialogInterface, int i) {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.create();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void sendPoints(float dx, float dy) {
|
public void sendPoints(float dx, float dy) {
|
||||||
NetworkPackage np = new NetworkPackage(NetworkPackage.PACKAGE_TYPE_MOUSEPAD);
|
NetworkPackage np = new NetworkPackage(NetworkPackage.PACKAGE_TYPE_MOUSEPAD);
|
||||||
|
Reference in New Issue
Block a user