mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-06 05:49:49 +02:00
Delete wrong credit. Change the notification icon and color.
This commit is contained in:
@@ -25,7 +25,6 @@ public class CreditsPreferenceFragment extends PreferenceFragmentCompat {
|
||||
Preference iconForegroundPreference = findPreference(SharedPreferencesUtils.ICON_FOREGROUND_KEY);
|
||||
Preference iconBackgroundPreference = findPreference(SharedPreferencesUtils.ICON_BACKGROUND_KEY);
|
||||
Preference errorImagePreference = findPreference(SharedPreferencesUtils.ERROR_IMAGE_KEY);
|
||||
Preference placeholderPreference = findPreference(SharedPreferencesUtils.SUBREDDIT_AND_USER_PLACEHOLDER_KEY);
|
||||
Preference gildedIconPreference = findPreference(SharedPreferencesUtils.GILDED_ICON_KEY);
|
||||
Preference crosspostIconPreference = findPreference(SharedPreferencesUtils.CROSSPOST_ICON_KEY);
|
||||
Preference thumbtackIconPreference = findPreference(SharedPreferencesUtils.THUMBTACK_ICON_KEY);
|
||||
@@ -61,15 +60,6 @@ public class CreditsPreferenceFragment extends PreferenceFragmentCompat {
|
||||
});
|
||||
}
|
||||
|
||||
if(placeholderPreference != null) {
|
||||
placeholderPreference.setOnPreferenceClickListener(preference -> {
|
||||
Intent intent = new Intent(activity, LinkResolverActivity.class);
|
||||
intent.setData(Uri.parse("https://www.freepik.com/free-photos-vectors/technology"));
|
||||
startActivity(intent);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
if(gildedIconPreference != null) {
|
||||
gildedIconPreference.setOnPreferenceClickListener(preference -> {
|
||||
Intent intent = new Intent(activity, LinkResolverActivity.class);
|
||||
|
@@ -29,7 +29,8 @@ class NotificationUtils {
|
||||
return new NotificationCompat.Builder(context.getApplicationContext(), channelId)
|
||||
.setContentTitle(title)
|
||||
.setContentText(content)
|
||||
.setSmallIcon(R.drawable.ic_launcher_foreground)
|
||||
.setSmallIcon(R.drawable.ic_notification)
|
||||
.setColor(context.getResources().getColor(R.color.notificationIconColor))
|
||||
.setStyle(new NotificationCompat.BigTextStyle()
|
||||
.setSummaryText(summary)
|
||||
.bigText(content))
|
||||
@@ -49,7 +50,8 @@ class NotificationUtils {
|
||||
.setContentTitle(title)
|
||||
//set content text to support devices running API level < 24
|
||||
.setContentText(content)
|
||||
.setSmallIcon(R.drawable.ic_launcher_foreground)
|
||||
.setSmallIcon(R.drawable.ic_notification)
|
||||
.setColor(context.getResources().getColor(R.color.notificationIconColor))
|
||||
.setGroup(group)
|
||||
.setGroupSummary(true)
|
||||
.setAutoCancel(true);
|
||||
|
@@ -13,7 +13,6 @@ public class SharedPreferencesUtils {
|
||||
public static final String ICON_FOREGROUND_KEY = "icon_foreground";
|
||||
public static final String ICON_BACKGROUND_KEY = "icon_background";
|
||||
public static final String ERROR_IMAGE_KEY = "error_image";
|
||||
public static final String SUBREDDIT_AND_USER_PLACEHOLDER_KEY = "subreddit_and_user_profile_placeholder";
|
||||
public static final String GILDED_ICON_KEY = "gilded_icon";
|
||||
public static final String CROSSPOST_ICON_KEY = "crosspost_icon";
|
||||
public static final String THUMBTACK_ICON_KEY = "thumbtack_icon";
|
||||
|
Reference in New Issue
Block a user