mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 10:20:25 +01:00
Specify exported status and PendingIntent mutability.
Also reduce shake sampling frequency, add coarse location permission. Random things for targetSdk 32.
This commit is contained in:
committed by
Cody Henthorne
parent
2566d6f61f
commit
b9f4dc3fe9
@@ -101,6 +101,7 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
import org.greenrobot.eventbus.ThreadMode;
|
||||
import org.signal.core.util.PendingIntentFlags;
|
||||
import org.signal.core.util.StringUtil;
|
||||
import org.signal.core.util.ThreadUtil;
|
||||
import org.signal.core.util.concurrent.SignalExecutors;
|
||||
@@ -1381,7 +1382,7 @@ public class ConversationParentFragment extends Fragment
|
||||
.build();
|
||||
|
||||
Intent callbackIntent = new Intent(ACTION_PINNED_SHORTCUT);
|
||||
PendingIntent shortcutPinnedCallback = PendingIntent.getBroadcast(context, REQUEST_CODE_PIN_SHORTCUT, callbackIntent, 0);
|
||||
PendingIntent shortcutPinnedCallback = PendingIntent.getBroadcast(context, REQUEST_CODE_PIN_SHORTCUT, callbackIntent, PendingIntentFlags.mutable());
|
||||
|
||||
ShortcutManagerCompat.requestPinShortcut(context, shortcutInfoCompat, shortcutPinnedCallback.getIntentSender());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user