mirror of
https://github.com/TrianguloY/UrlChecker.git
synced 2024-09-19 20:02:16 +02:00
Improved error message for check module (https://github.com/TrianguloY/UrlChecker/issues/6#issuecomment-1035381186)
More compact modules to take less space
This commit is contained in:
parent
9084ba59a2
commit
2169a3491f
@ -137,9 +137,13 @@ class StatusDialog extends AModuleDialog implements View.OnClickListener, Clicka
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
// error
|
||||
// io error
|
||||
e.printStackTrace();
|
||||
message = getActivity().getString(R.string.mStatus_error);
|
||||
message = getActivity().getString(R.string.mStatus_ioerror, e.getMessage());
|
||||
} catch (Exception e) {
|
||||
// other error
|
||||
e.printStackTrace();
|
||||
message = getActivity().getString(R.string.mStatus_error, e.getMessage());
|
||||
} finally {
|
||||
if (conn != null) {
|
||||
conn.disconnect();
|
||||
|
@ -3,7 +3,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="5dp">
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
|
@ -2,12 +2,8 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<Button
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content" />
|
||||
android:gravity="center_vertical"
|
||||
android:paddingBottom="5dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pattern"
|
||||
|
@ -47,7 +47,8 @@ This module can\'t be disabled."</string>
|
||||
|
||||
<string name="mStatus_name">Status code</string>
|
||||
<string name="mStatus_desc">By pressing the check button, a petition will be made to retrieve and display the site status code.\nIf the result is a redirection, you will be able to view the destination url. The url is fetched, but not evaluated, so redirections based on javascript won\'t be detected.</string>
|
||||
<string name="mStatus_error">Internal error when trying to check the url</string>
|
||||
<string name="mStatus_ioerror">Network error while trying to check the url: %s</string>
|
||||
<string name="mStatus_error">Internal error while trying to check the url: %s</string>
|
||||
<string name="mStatus_check">Check</string>
|
||||
<string name="mStatus_checking">Checking…</string>
|
||||
<string-array name="mStatus_codes">
|
||||
|
Loading…
Reference in New Issue
Block a user