mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
Removed extra string resource
This commit is contained in:
@@ -9,8 +9,6 @@
|
|||||||
<string name="kde_connect">KDE Connect</string>
|
<string name="kde_connect">KDE Connect</string>
|
||||||
<string name="foreground_notification_no_devices">Not connected to any device</string>
|
<string name="foreground_notification_no_devices">Not connected to any device</string>
|
||||||
<string name="foreground_notification_devices">Connected to: %s</string>
|
<string name="foreground_notification_devices">Connected to: %s</string>
|
||||||
<string name="foreground_notification_send_files">Send Files</string>
|
|
||||||
<string name="foreground_notification_run_commands">Run Commands</string>
|
|
||||||
<string name="pref_plugin_telephony">Telephony notifier</string>
|
<string name="pref_plugin_telephony">Telephony notifier</string>
|
||||||
<string name="pref_plugin_telephony_desc">Send notifications for incoming calls</string>
|
<string name="pref_plugin_telephony_desc">Send notifications for incoming calls</string>
|
||||||
<string name="pref_plugin_battery">Battery report</string>
|
<string name="pref_plugin_battery">Battery report</string>
|
||||||
|
@@ -35,7 +35,6 @@ import android.os.Build;
|
|||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.widget.Toast;
|
|
||||||
|
|
||||||
import org.kde.kdeconnect.Backends.BaseLink;
|
import org.kde.kdeconnect.Backends.BaseLink;
|
||||||
import org.kde.kdeconnect.Backends.BaseLinkProvider;
|
import org.kde.kdeconnect.Backends.BaseLinkProvider;
|
||||||
@@ -60,7 +59,6 @@ import java.util.concurrent.locks.ReentrantLock;
|
|||||||
|
|
||||||
import androidx.core.app.NotificationCompat;
|
import androidx.core.app.NotificationCompat;
|
||||||
|
|
||||||
import static android.content.ContentValues.TAG;
|
|
||||||
|
|
||||||
//import org.kde.kdeconnect.Backends.BluetoothBackend.BluetoothLinkProvider;
|
//import org.kde.kdeconnect.Backends.BluetoothBackend.BluetoothLinkProvider;
|
||||||
|
|
||||||
@@ -342,7 +340,7 @@ public class BackgroundService extends Service {
|
|||||||
Intent sendFile = new Intent(this, SendFileActivity.class);
|
Intent sendFile = new Intent(this, SendFileActivity.class);
|
||||||
sendFile.putExtra("deviceId", deviceIds.get(0));
|
sendFile.putExtra("deviceId", deviceIds.get(0));
|
||||||
PendingIntent sendPendingFile = PendingIntent.getActivity(this, 1, sendFile, PendingIntent.FLAG_UPDATE_CURRENT);
|
PendingIntent sendPendingFile = PendingIntent.getActivity(this, 1, sendFile, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||||
notification.addAction(0, getString(R.string.foreground_notification_send_files), sendPendingFile);
|
notification.addAction(0, getString(R.string.send_files), sendPendingFile);
|
||||||
|
|
||||||
// Checking if there are registered commands and adding the button.
|
// Checking if there are registered commands and adding the button.
|
||||||
Device device = getDevice(deviceIds.get(0));
|
Device device = getDevice(deviceIds.get(0));
|
||||||
@@ -351,12 +349,10 @@ public class BackgroundService extends Service {
|
|||||||
Intent runCommand = new Intent(this, RunCommandActivity.class);
|
Intent runCommand = new Intent(this, RunCommandActivity.class);
|
||||||
runCommand.putExtra("deviceId", deviceIds.get(0));
|
runCommand.putExtra("deviceId", deviceIds.get(0));
|
||||||
PendingIntent runPendingCommand = PendingIntent.getActivity(this, 2, runCommand, PendingIntent.FLAG_UPDATE_CURRENT);
|
PendingIntent runPendingCommand = PendingIntent.getActivity(this, 2, runCommand, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||||
notification.addAction(0, getString(R.string.foreground_notification_run_commands), runPendingCommand);
|
notification.addAction(0, getString(R.string.pref_plugin_runcommand), runPendingCommand);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
notification.setColor(0xf67400);
|
|
||||||
|
|
||||||
return notification.build();
|
return notification.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user