Added button to view mailing list
This commit is contained in:
parent
742bbc5c92
commit
2dce723a8d
|
@ -25,6 +25,7 @@ public class MainPreferencesFragment extends PreferenceFragmentCompat {
|
|||
private static final String PREF_SCREEN_INTEGRATIONS = "prefScreenIntegrations";
|
||||
private static final String PREF_SCREEN_STORAGE = "prefScreenStorage";
|
||||
private static final String PREF_FAQ = "prefFaq";
|
||||
private static final String PREF_VIEW_MAILING_LIST = "prefViewMailingList";
|
||||
private static final String PREF_SEND_BUG_REPORT = "prefSendBugReport";
|
||||
private static final String STATISTICS = "statistics";
|
||||
private static final String PREF_ABOUT = "prefAbout";
|
||||
|
@ -74,6 +75,10 @@ public class MainPreferencesFragment extends PreferenceFragmentCompat {
|
|||
openInBrowser("https://antennapod.org/faq.html");
|
||||
return true;
|
||||
});
|
||||
findPreference(PREF_VIEW_MAILING_LIST).setOnPreferenceClickListener(preference -> {
|
||||
openInBrowser("https://groups.google.com/forum/#!forum/antennapod");
|
||||
return true;
|
||||
});
|
||||
findPreference(PREF_SEND_BUG_REPORT).setOnPreferenceClickListener(preference -> {
|
||||
startActivity(new Intent(getActivity(), BugReportActivity.class));
|
||||
return true;
|
||||
|
|
|
@ -44,6 +44,10 @@
|
|||
android:key="prefFaq"
|
||||
android:title="@string/pref_faq"
|
||||
android:icon="?attr/ic_questionmark" />
|
||||
<Preference
|
||||
android:key="prefViewMailingList"
|
||||
android:title="@string/view_mailing_list"
|
||||
android:icon="?attr/ic_chat" />
|
||||
<Preference
|
||||
android:key="prefSendBugReport"
|
||||
android:title="@string/bug_report_title"
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<vector android:height="24dp"
|
||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FF757575" android:pathData="M21,6h-2v9L6,15v2c0,0.55 0.45,1 1,1h11l4,4L22,7c0,-0.55 -0.45,-1 -1,-1zM17,12L17,3c0,-0.55 -0.45,-1 -1,-1L3,2c-0.55,0 -1,0.45 -1,1v14l4,-4h10c0.55,0 1,-0.45 1,-1z"/>
|
||||
</vector>
|
|
@ -0,0 +1,5 @@
|
|||
<vector android:height="24dp"
|
||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FFFFFFFF" android:pathData="M21,6h-2v9L6,15v2c0,0.55 0.45,1 1,1h11l4,4L22,7c0,-0.55 -0.45,-1 -1,-1zM17,12L17,3c0,-0.55 -0.45,-1 -1,-1L3,2c-0.55,0 -1,0.45 -1,1v14l4,-4h10c0.55,0 1,-0.45 1,-1z"/>
|
||||
</vector>
|
|
@ -57,6 +57,7 @@
|
|||
<attr name="ic_swap" format="reference"/>
|
||||
<attr name="ic_cellphone_text" format="reference"/>
|
||||
<attr name="ic_questionmark" format="reference" />
|
||||
<attr name="ic_chat" format="reference"/>
|
||||
<attr name="ic_bug" format="reference" />
|
||||
<attr name="master_switch_background" format="color"/>
|
||||
<attr name="currently_playing_background" format="color"/>
|
||||
|
|
|
@ -448,6 +448,7 @@
|
|||
<string name="pref_smart_mark_as_played_disabled">Disabled</string>
|
||||
<string name="pref_image_cache_size_title">Image Cache Size</string>
|
||||
<string name="pref_image_cache_size_sum">Size of the disk cache for images.</string>
|
||||
<string name="view_mailing_list">View mailing list</string>
|
||||
<string name="bug_report_title">Report bug</string>
|
||||
<string name="open_bug_tracker">Open bug tracker</string>
|
||||
<string name="copy_to_clipboard">Copy to clipboard</string>
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
<item name="ic_cast_disconnect">@drawable/ic_cast_disconnect_grey600_36dp</item>
|
||||
<item name="ic_cellphone_text">@drawable/ic_cellphone_text_grey600_24dp</item>
|
||||
<item name="ic_questionmark">@drawable/ic_questionmark_grey600</item>
|
||||
<item name="ic_chat">@drawable/ic_chat_grey600</item>
|
||||
<item name="ic_bug">@drawable/ic_bug_grey600_24dp</item>
|
||||
<item name="ic_bookmark">@drawable/ic_bookmark_grey600_24dp</item>
|
||||
<item name="batch_edit_fab_icon">@drawable/ic_fab_edit_white</item>
|
||||
|
@ -153,6 +154,7 @@
|
|||
<item name="ic_cast_disconnect">@drawable/ic_cast_disconnect_white_36dp</item>
|
||||
<item name="ic_cellphone_text">@drawable/ic_cellphone_text_white_24dp</item>
|
||||
<item name="ic_questionmark">@drawable/ic_questionmark_white</item>
|
||||
<item name="ic_chat">@drawable/ic_chat_white</item>
|
||||
<item name="ic_bug">@drawable/ic_bug_white_24dp</item>
|
||||
<item name="ic_bookmark">@drawable/ic_bookmark_white_24dp</item>
|
||||
<item name="batch_edit_fab_icon">@drawable/ic_fab_edit_white</item>
|
||||
|
|
Loading…
Reference in New Issue