Merge pull request #3433 from ByteHamster/bug-report-section
Bug report section
@ -210,8 +210,8 @@
|
||||
android:label="@string/opml_import_label">
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".activity.CrashReportActivity"
|
||||
android:label="@string/crash_report_title">
|
||||
android:name=".activity.BugReportActivity"
|
||||
android:label="@string/bug_report_title">
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value="de.danoeh.antennapod.activity.PreferenceActivity"/>
|
||||
|
@ -24,14 +24,14 @@ import java.nio.charset.Charset;
|
||||
/**
|
||||
* Displays the 'crash report' screen
|
||||
*/
|
||||
public class CrashReportActivity extends AppCompatActivity {
|
||||
public class BugReportActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
setTheme(UserPreferences.getTheme());
|
||||
super.onCreate(savedInstanceState);
|
||||
getSupportActionBar().setDisplayShowHomeEnabled(true);
|
||||
setContentView(R.layout.crash_report);
|
||||
setContentView(R.layout.bug_report);
|
||||
|
||||
TextView crashDetailsText = findViewById(R.id.crash_report_logs);
|
||||
|
||||
@ -56,7 +56,7 @@ public class CrashReportActivity extends AppCompatActivity {
|
||||
|
||||
findViewById(R.id.btn_copy_log).setOnClickListener(v -> {
|
||||
ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
|
||||
ClipData clip = ClipData.newPlainText(getString(R.string.crash_report_title), crashDetailsText.getText());
|
||||
ClipData clip = ClipData.newPlainText(getString(R.string.bug_report_title), crashDetailsText.getText());
|
||||
clipboard.setPrimaryClip(clip);
|
||||
Snackbar.make(findViewById(android.R.id.content), R.string.copied_to_clipboard, Snackbar.LENGTH_SHORT).show();
|
||||
});
|
@ -12,7 +12,7 @@ import com.bytehamster.lib.preferencesearch.SearchConfiguration;
|
||||
import com.bytehamster.lib.preferencesearch.SearchPreference;
|
||||
import de.danoeh.antennapod.R;
|
||||
import de.danoeh.antennapod.activity.AboutActivity;
|
||||
import de.danoeh.antennapod.activity.CrashReportActivity;
|
||||
import de.danoeh.antennapod.activity.BugReportActivity;
|
||||
import de.danoeh.antennapod.activity.PreferenceActivity;
|
||||
import de.danoeh.antennapod.activity.StatisticsActivity;
|
||||
|
||||
@ -24,9 +24,9 @@ public class MainPreferencesFragment extends PreferenceFragmentCompat {
|
||||
private static final String PREF_SCREEN_NETWORK = "prefScreenNetwork";
|
||||
private static final String PREF_SCREEN_INTEGRATIONS = "prefScreenIntegrations";
|
||||
private static final String PREF_SCREEN_STORAGE = "prefScreenStorage";
|
||||
private static final String PREF_KNOWN_ISSUES = "prefKnownIssues";
|
||||
private static final String PREF_FAQ = "prefFaq";
|
||||
private static final String PREF_SEND_CRASH_REPORT = "prefSendCrashReport";
|
||||
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";
|
||||
|
||||
@ -71,16 +71,16 @@ public class MainPreferencesFragment extends PreferenceFragmentCompat {
|
||||
return true;
|
||||
}
|
||||
);
|
||||
findPreference(PREF_KNOWN_ISSUES).setOnPreferenceClickListener(preference -> {
|
||||
openInBrowser("https://github.com/AntennaPod/AntennaPod/labels/bug");
|
||||
return true;
|
||||
});
|
||||
findPreference(PREF_FAQ).setOnPreferenceClickListener(preference -> {
|
||||
openInBrowser("https://antennapod.org/faq.html");
|
||||
return true;
|
||||
});
|
||||
findPreference(PREF_SEND_CRASH_REPORT).setOnPreferenceClickListener(preference -> {
|
||||
startActivity(new Intent(getActivity(), CrashReportActivity.class));
|
||||
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;
|
||||
});
|
||||
}
|
||||
|
@ -43,16 +43,14 @@
|
||||
<Preference
|
||||
android:key="prefFaq"
|
||||
android:title="@string/pref_faq"
|
||||
android:icon="?attr/ic_question_answer" />
|
||||
|
||||
android:icon="?attr/ic_questionmark" />
|
||||
<Preference
|
||||
android:key="prefKnownIssues"
|
||||
android:title="@string/pref_known_issues"
|
||||
android:icon="?attr/ic_known_issues" />
|
||||
android:key="prefViewMailingList"
|
||||
android:title="@string/view_mailing_list"
|
||||
android:icon="?attr/ic_chat" />
|
||||
<Preference
|
||||
android:key="prefSendCrashReport"
|
||||
android:title="@string/crash_report_title"
|
||||
android:summary="@string/crash_report_sum"
|
||||
android:key="prefSendBugReport"
|
||||
android:title="@string/bug_report_title"
|
||||
android:icon="?attr/ic_bug" />
|
||||
<Preference
|
||||
android:key="prefAbout"
|
||||
|
Before Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 492 B |
Before Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 601 B |
Before Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 462 B |
Before Width: | Height: | Size: 602 B |
Before Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 631 B |
Before Width: | Height: | Size: 594 B |
Before Width: | Height: | Size: 766 B |
Before Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 666 B |
Before Width: | Height: | Size: 900 B |
5
core/src/main/res/drawable/ic_chat_grey600.xml
Normal file
@ -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>
|
5
core/src/main/res/drawable/ic_chat_white.xml
Normal file
@ -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>
|
5
core/src/main/res/drawable/ic_questionmark_grey600.xml
Normal file
@ -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="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,19h-2v-2h2v2zM15.07,11.25l-0.9,0.92C13.45,12.9 13,13.5 13,15h-2v-0.5c0,-1.1 0.45,-2.1 1.17,-2.83l1.24,-1.26c0.37,-0.36 0.59,-0.86 0.59,-1.41 0,-1.1 -0.9,-2 -2,-2s-2,0.9 -2,2L8,9c0,-2.21 1.79,-4 4,-4s4,1.79 4,4c0,0.88 -0.36,1.68 -0.93,2.25z"/>
|
||||
</vector>
|
5
core/src/main/res/drawable/ic_questionmark_white.xml
Normal file
@ -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="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,19h-2v-2h2v2zM15.07,11.25l-0.9,0.92C13.45,12.9 13,13.5 13,15h-2v-0.5c0,-1.1 0.45,-2.1 1.17,-2.83l1.24,-1.26c0.37,-0.36 0.59,-0.86 0.59,-1.41 0,-1.1 -0.9,-2 -2,-2s-2,0.9 -2,2L8,9c0,-2.21 1.79,-4 4,-4s4,1.79 4,4c0,0.88 -0.36,1.68 -0.93,2.25z"/>
|
||||
</vector>
|
@ -57,9 +57,9 @@
|
||||
<attr name="ic_cast_disconnect" format="reference"/>
|
||||
<attr name="ic_swap" format="reference"/>
|
||||
<attr name="ic_cellphone_text" format="reference"/>
|
||||
<attr name="ic_question_answer" format="reference" />
|
||||
<attr name="ic_questionmark" format="reference" />
|
||||
<attr name="ic_chat" format="reference"/>
|
||||
<attr name="ic_bug" format="reference" />
|
||||
<attr name="ic_known_issues" format="reference" />
|
||||
<attr name="master_switch_background" format="color"/>
|
||||
<attr name="currently_playing_background" format="color"/>
|
||||
<attr name="ic_bookmark" format="reference"/>
|
||||
|
@ -449,8 +449,8 @@
|
||||
<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="crash_report_title">Crash Report</string>
|
||||
<string name="crash_report_sum">View details about last crash</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>
|
||||
<string name="copied_to_clipboard">Copied to clipboard</string>
|
||||
@ -459,8 +459,7 @@
|
||||
<string name="pref_current_value">Current value: %1$s</string>
|
||||
<string name="pref_proxy_title">Proxy</string>
|
||||
<string name="pref_proxy_sum">Set a network proxy</string>
|
||||
<string name="pref_faq">FAQ</string>
|
||||
<string name="pref_known_issues">Known issues</string>
|
||||
<string name="pref_faq">Frequently Asked Questions</string>
|
||||
<string name="pref_no_browser_found">No web browser found.</string>
|
||||
<string name="pref_cast_title">Chromecast support</string>
|
||||
<string name="pref_cast_message_play_flavor">Enable support for remote media playback on Cast devices (such as Chromecast, Audio Speakers or Android TV)</string>
|
||||
|
@ -69,9 +69,9 @@
|
||||
<item name="ic_create_new_folder">@drawable/ic_create_new_folder_grey600_24dp</item>
|
||||
<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_question_answer">@drawable/ic_forum_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_known_issues">@drawable/ic_format_list_bulleted_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>
|
||||
<item name="master_switch_background">@color/master_switch_background_light</item>
|
||||
@ -155,9 +155,9 @@
|
||||
<item name="ic_create_new_folder">@drawable/ic_create_new_folder_white_24dp</item>
|
||||
<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_question_answer">@drawable/ic_baseline_question_answer_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_known_issues">@drawable/ic_format_list_bulleted_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>
|
||||
<item name="master_switch_background">@color/master_switch_background_dark</item>
|
||||
|