mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
Typo
This commit is contained in:
@@ -150,7 +150,7 @@ public class SharePlugin extends Plugin {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
OutputStream output = null;
|
OutputStream output = null;
|
||||||
boolean successul = true;
|
boolean successful = true;
|
||||||
try {
|
try {
|
||||||
output = new FileOutputStream(destinationFullPath.getPath());
|
output = new FileOutputStream(destinationFullPath.getPath());
|
||||||
byte data[] = new byte[1024];
|
byte data[] = new byte[1024];
|
||||||
@@ -179,7 +179,7 @@ public class SharePlugin extends Plugin {
|
|||||||
output.flush();
|
output.flush();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
successul = false;
|
successful = false;
|
||||||
Log.e("SharePlugin", "Receiver thread exception");
|
Log.e("SharePlugin", "Receiver thread exception");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} finally {
|
} finally {
|
||||||
@@ -208,14 +208,14 @@ public class SharePlugin extends Plugin {
|
|||||||
|
|
||||||
Resources res = context.getResources();
|
Resources res = context.getResources();
|
||||||
|
|
||||||
String message = successul? res.getString(R.string.received_file_title, device.getName()) : res.getString(R.string.received_file_fail_title, device.getName());
|
String message = successful? res.getString(R.string.received_file_title, device.getName()) : res.getString(R.string.received_file_fail_title, device.getName());
|
||||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(context)
|
NotificationCompat.Builder builder = new NotificationCompat.Builder(context)
|
||||||
.setContentTitle(message)
|
.setContentTitle(message)
|
||||||
.setTicker(message)
|
.setTicker(message)
|
||||||
.setSmallIcon(android.R.drawable.stat_sys_download_done)
|
.setSmallIcon(android.R.drawable.stat_sys_download_done)
|
||||||
.setAutoCancel(true);
|
.setAutoCancel(true);
|
||||||
|
|
||||||
if (successul) {
|
if (successful) {
|
||||||
builder.setContentText(res.getString(R.string.received_file_text, filename))
|
builder.setContentText(res.getString(R.string.received_file_text, filename))
|
||||||
.setContentIntent(resultPendingIntent);
|
.setContentIntent(resultPendingIntent);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user