mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 18:07:55 +00:00
Remove unused method
This commit is contained in:
parent
1ffcaba71c
commit
a616d5afbd
@ -344,7 +344,6 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
|
|||||||
Bundle localBundle = new Bundle();
|
Bundle localBundle = new Bundle();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (RemoteInput remoteIn : repliableNotification.remoteInputs) {
|
for (RemoteInput remoteIn : repliableNotification.remoteInputs) {
|
||||||
getDetailsOfNotification(remoteIn);
|
|
||||||
remoteInputs[i] = remoteIn;
|
remoteInputs[i] = remoteIn;
|
||||||
localBundle.putCharSequence(remoteInputs[i].getResultKey(), message);
|
localBundle.putCharSequence(remoteInputs[i].getResultKey(), message);
|
||||||
i++;
|
i++;
|
||||||
@ -359,20 +358,6 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
|
|||||||
pendingIntents.remove(id);
|
pendingIntents.remove(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresApi(api = Build.VERSION_CODES.KITKAT_WATCH)
|
|
||||||
private void getDetailsOfNotification(RemoteInput remoteInput) {
|
|
||||||
//Some more details of RemoteInput... no idea what for but maybe it will be useful at some point
|
|
||||||
String resultKey = remoteInput.getResultKey();
|
|
||||||
String label = remoteInput.getLabel().toString();
|
|
||||||
Boolean canFreeForm = remoteInput.getAllowFreeFormInput();
|
|
||||||
if (remoteInput.getChoices() != null && remoteInput.getChoices().length > 0) {
|
|
||||||
String[] possibleChoices = new String[remoteInput.getChoices().length];
|
|
||||||
for (int i = 0; i < remoteInput.getChoices().length; i++) {
|
|
||||||
possibleChoices[i] = remoteInput.getChoices()[i].toString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private String getNotificationTitle(Notification notification) {
|
private String getNotificationTitle(Notification notification) {
|
||||||
final String TITLE_KEY = "android.title";
|
final String TITLE_KEY = "android.title";
|
||||||
final String TEXT_KEY = "android.text";
|
final String TEXT_KEY = "android.text";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user