Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java
Show All 25 Lines | |||||
26 | import android.content.Context; | 26 | import android.content.Context; | ||
27 | import android.content.Intent; | 27 | import android.content.Intent; | ||
28 | import android.content.SharedPreferences; | 28 | import android.content.SharedPreferences; | ||
29 | import android.graphics.Bitmap; | 29 | import android.graphics.Bitmap; | ||
30 | import android.graphics.BitmapFactory; | 30 | import android.graphics.BitmapFactory; | ||
31 | import android.net.Uri; | 31 | import android.net.Uri; | ||
32 | import android.os.Build; | 32 | import android.os.Build; | ||
33 | import android.preference.PreferenceManager; | 33 | import android.preference.PreferenceManager; | ||
34 | import android.support.v4.app.NotificationCompat; | | |||
35 | import android.support.v4.content.FileProvider; | | |||
36 | 34 | | |||
37 | import org.kde.kdeconnect.Device; | 35 | import org.kde.kdeconnect.Device; | ||
38 | import org.kde.kdeconnect.Helpers.NotificationHelper; | 36 | import org.kde.kdeconnect.Helpers.NotificationHelper; | ||
39 | import org.kde.kdeconnect_tp.R; | 37 | import org.kde.kdeconnect_tp.R; | ||
40 | 38 | | |||
41 | import java.io.File; | 39 | import java.io.File; | ||
42 | import java.io.IOException; | 40 | import java.io.IOException; | ||
43 | import java.io.InputStream; | 41 | import java.io.InputStream; | ||
44 | 42 | | |||
43 | import androidx.core.app.NotificationCompat; | ||||
44 | import androidx.core.content.FileProvider; | ||||
45 | | ||||
45 | //TODO: Starting API 24 notification title and text are both displayed on 1 line above the progress bar. Because title can be long, the text is often not displayed | 46 | //TODO: Starting API 24 notification title and text are both displayed on 1 line above the progress bar. Because title can be long, the text is often not displayed | ||
46 | class ShareNotification { | 47 | class ShareNotification { | ||
47 | private final NotificationManager notificationManager; | 48 | private final NotificationManager notificationManager; | ||
48 | private final int notificationId; | 49 | private final int notificationId; | ||
49 | private NotificationCompat.Builder builder; | 50 | private NotificationCompat.Builder builder; | ||
50 | private final Device device; | 51 | private final Device device; | ||
51 | 52 | | |||
52 | //https://documentation.onesignal.com/docs/android-customizations#section-big-picture | 53 | //https://documentation.onesignal.com/docs/android-customizations#section-big-picture | ||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |