mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
parent
d96e979731
commit
e6322b44f7
2 changed files with 1 additions and 12 deletions
|
@ -49,7 +49,6 @@ import androidx.annotation.Nullable;
|
|||
import androidx.core.app.NotificationCompat;
|
||||
import androidx.core.app.Person;
|
||||
import androidx.core.app.RemoteInput;
|
||||
import androidx.core.content.LocusIdCompat;
|
||||
import androidx.core.graphics.drawable.IconCompat;
|
||||
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
|
||||
import androidx.preference.PreferenceManager;
|
||||
|
@ -4562,10 +4561,6 @@ class Core {
|
|||
.setOnlyAlertOnce(alert_once)
|
||||
.setAllowSystemGeneratedContextualActions(false);
|
||||
|
||||
// https://developer.android.com/reference/android/content/LocusId
|
||||
if (message.thread != null)
|
||||
mbuilder.setLocusId(new LocusIdCompat(message.thread));
|
||||
|
||||
if (message.ui_silent) {
|
||||
mbuilder.setSilent(true);
|
||||
Log.i("Notify silent=" + message.id);
|
||||
|
|
|
@ -41,7 +41,6 @@ import android.widget.Toast;
|
|||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.core.app.Person;
|
||||
import androidx.core.content.LocusIdCompat;
|
||||
import androidx.core.content.pm.ShortcutInfoCompat;
|
||||
import androidx.core.content.pm.ShortcutManagerCompat;
|
||||
import androidx.core.graphics.drawable.IconCompat;
|
||||
|
@ -304,16 +303,11 @@ class Shortcuts {
|
|||
|
||||
IconCompat icon = IconCompat.createWithBitmap(bm);
|
||||
String id = "message:" + message.id;
|
||||
ShortcutInfoCompat.Builder builder = new ShortcutInfoCompat.Builder(context, id)
|
||||
return new ShortcutInfoCompat.Builder(context, id)
|
||||
.setIcon(icon)
|
||||
.setShortLabel(label)
|
||||
.setLongLabel(label)
|
||||
.setIntent(thread);
|
||||
|
||||
if (message.thread != null)
|
||||
builder.setLocusId(new LocusIdCompat(message.thread));
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
|
Loading…
Reference in a new issue