mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Added option for #130
This commit is contained in:
@@ -61,6 +61,10 @@ public class ConversationPrefsHelper {
|
||||
return getBoolean(SettingsFragment.NOTIFICATION_CALL_BUTTON, false);
|
||||
}
|
||||
|
||||
public boolean getDimissedReadEnabled() {
|
||||
return getBoolean(SettingsFragment.DISMISSED_READ, false);
|
||||
}
|
||||
|
||||
public void putString(String key, String value) {
|
||||
mConversationPrefs.edit().putString(key, value).apply();
|
||||
}
|
||||
|
||||
@@ -474,6 +474,7 @@ public class NotificationManager {
|
||||
.addAction(R.drawable.ic_accept, sRes.getString(R.string.read), readPI)
|
||||
.extend(WearableIntentReceiver.getSingleConversationExtender(context, message.mContact, message.mAddress, threadId))
|
||||
.setDeleteIntent(seenPI);
|
||||
if (conversationPrefs.getDimissedReadEnabled()){builder.setDeleteIntent(readPI);}
|
||||
|
||||
if (conversationPrefs.getCallButtonEnabled()) {
|
||||
Intent callIntent = new Intent(Intent.ACTION_CALL);
|
||||
|
||||
@@ -142,6 +142,7 @@ public class SettingsFragment extends PreferenceFragment implements
|
||||
public static final String MMS_CONTACT_SUPPORT = "pref_key_mms_contact_support";
|
||||
public static final String SIMPLE_PREFS = "pref_key_simple";
|
||||
public static final String DONATE = "pref_key_donate";
|
||||
public static final String DISMISSED_READ = "pref_key_dismiss_read";
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user