aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2020-06-20 04:18:02 +0000
committerGitHub <noreply@github.com>2020-06-20 04:18:02 +0000
commit8871eeaca8e46ee713bc7f7d5f666d0963cb1055 (patch)
tree2f43de21889469ff1e4277119e424278d3a7444e /app/src/main/java/ml
parentcf69dc114a5242225081deef5329202acf74e774 (diff)
parenta70a00e6e9511d8826874488b2904b86b3d3e930 (diff)
downloadinfinity-for-reddit-8871eeaca8e46ee713bc7f7d5f666d0963cb1055.tar
infinity-for-reddit-8871eeaca8e46ee713bc7f7d5f666d0963cb1055.tar.gz
infinity-for-reddit-8871eeaca8e46ee713bc7f7d5f666d0963cb1055.tar.bz2
infinity-for-reddit-8871eeaca8e46ee713bc7f7d5f666d0963cb1055.tar.lz
infinity-for-reddit-8871eeaca8e46ee713bc7f7d5f666d0963cb1055.tar.xz
infinity-for-reddit-8871eeaca8e46ee713bc7f7d5f666d0963cb1055.tar.zst
infinity-for-reddit-8871eeaca8e46ee713bc7f7d5f666d0963cb1055.zip
Merge pull request #131 from OHermesJunior/sort-icons
Add icons to sort bottom sheets.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CreditsPreferenceFragment.java10
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Utils/SharedPreferencesUtils.java1
2 files changed, 11 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CreditsPreferenceFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CreditsPreferenceFragment.java
index 8607b486..3bb14843 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CreditsPreferenceFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CreditsPreferenceFragment.java
@@ -32,6 +32,7 @@ public class CreditsPreferenceFragment extends PreferenceFragmentCompat {
Preference gildedIconPreference = findPreference(SharedPreferencesUtils.GILDED_ICON_KEY);
Preference crosspostIconPreference = findPreference(SharedPreferencesUtils.CROSSPOST_ICON_KEY);
Preference thumbtackIconPreference = findPreference(SharedPreferencesUtils.THUMBTACK_ICON_KEY);
+ Preference bestRocketIconPreference = findPreference(SharedPreferencesUtils.BEST_ROCKET_ICON_KEY);
Preference materialIconsPreference = findPreference(SharedPreferencesUtils.MATERIAL_ICONS_KEY);
if (iconForegroundPreference != null) {
@@ -88,6 +89,15 @@ public class CreditsPreferenceFragment extends PreferenceFragmentCompat {
});
}
+ if (bestRocketIconPreference != null) {
+ bestRocketIconPreference.setOnPreferenceClickListener(preference -> {
+ Intent intent = new Intent(activity, LinkResolverActivity.class);
+ intent.setData(Uri.parse("https://www.flaticon.com/free-icon/spring-swing-rocket_2929322?term=space%20ship&page=1&position=18"));
+ startActivity(intent);
+ return true;
+ });
+ }
+
if (materialIconsPreference != null) {
materialIconsPreference.setOnPreferenceClickListener(preference -> {
Intent intent = new Intent(activity, LinkResolverActivity.class);
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/SharedPreferencesUtils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/SharedPreferencesUtils.java
index a26571a9..61af3068 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/SharedPreferencesUtils.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/SharedPreferencesUtils.java
@@ -18,6 +18,7 @@ public class SharedPreferencesUtils {
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";
+ public static final String BEST_ROCKET_ICON_KEY = "best_rocket_icon";
public static final String MATERIAL_ICONS_KEY = "material_icons";
public static final String OPEN_SOURCE_KEY = "open_source";
public static final String RATE_KEY = "rate";