Correction of informative state messages
This commit is contained in:
parent
310f84dbcd
commit
d51efa8b89
13 changed files with 23 additions and 3 deletions
|
@ -6,8 +6,8 @@ android {
|
|||
applicationId "org.disroot.disrootapp"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 32
|
||||
versionCode 29
|
||||
versionName "2.0.6"
|
||||
versionCode 30
|
||||
versionName "2.0.7"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
|
|
|
@ -126,6 +126,7 @@ public class StateMessagesActivity extends AppCompatActivity {
|
|||
String title = c.getString("title");
|
||||
String link = c.getString("permalink");
|
||||
boolean resolved = c.getBoolean( "resolved" );
|
||||
boolean informational = c.getBoolean( "informational" );
|
||||
String lastMod = c.getString("lastMod");
|
||||
String lastUpdated = "Last Updated: " + lastMod + '"';
|
||||
|
||||
|
@ -135,7 +136,8 @@ public class StateMessagesActivity extends AppCompatActivity {
|
|||
// adding each child node to HashMap key => value
|
||||
service.put("title", title);
|
||||
service.put("moreInfo", link);
|
||||
service.put("resolved", Boolean.toString( resolved ) );
|
||||
if (informational == true) service.put("resolved", "informational" );
|
||||
else service.put("resolved", Boolean.toString( resolved ) );
|
||||
service.put("lastMod", lastUpdated);
|
||||
|
||||
// adding service to service list
|
||||
|
@ -207,6 +209,11 @@ public class StateMessagesActivity extends AppCompatActivity {
|
|||
status.setText(R.string.Fixed);
|
||||
resolved.setVisibility(View.GONE );
|
||||
break;
|
||||
case "informational":
|
||||
status.setTextColor(Color.YELLOW);
|
||||
status.setText(R.string.info);
|
||||
resolved.setVisibility(View.GONE );
|
||||
break;
|
||||
case "false":
|
||||
status.setTextColor(Color.RED);
|
||||
status.setText(R.string.down);
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
<string name="Fixed">Behoben</string>
|
||||
<string name="down">Down</string>
|
||||
<string name="more_info">Tap for more info</string>
|
||||
<string name="info">info</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -179,4 +179,5 @@
|
|||
|
||||
<string name="down">Down</string>
|
||||
<string name="more_info">Tap for more info</string>
|
||||
<string name="info">info</string>
|
||||
</resources>
|
||||
|
|
|
@ -216,4 +216,5 @@
|
|||
|
||||
<string name="down">Down</string>
|
||||
<string name="more_info">Tap for more info</string>
|
||||
<string name="info">info</string>
|
||||
</resources>
|
||||
|
|
|
@ -167,4 +167,5 @@
|
|||
|
||||
<string name="down">Down</string>
|
||||
<string name="more_info">Tap for more info</string>
|
||||
<string name="info">info</string>
|
||||
</resources>
|
||||
|
|
|
@ -180,4 +180,5 @@
|
|||
|
||||
<string name="down">Down</string>
|
||||
<string name="more_info">Tap for more info</string>
|
||||
<string name="info">info</string>
|
||||
</resources>
|
||||
|
|
|
@ -175,4 +175,5 @@
|
|||
|
||||
<string name="down">Down</string>
|
||||
<string name="more_info">Tap for more info</string>
|
||||
<string name="info">info</string>
|
||||
</resources>
|
||||
|
|
|
@ -178,4 +178,5 @@
|
|||
|
||||
<string name="down">Down</string>
|
||||
<string name="more_info">Tap for more info</string>
|
||||
<string name="info">info</string>
|
||||
</resources>
|
||||
|
|
|
@ -179,4 +179,5 @@
|
|||
|
||||
<string name="down">Down</string>
|
||||
<string name="more_info">Tap for more info</string>
|
||||
<string name="info">info</string>
|
||||
</resources>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="info">info</string>
|
||||
</resources>
|
|
@ -174,4 +174,5 @@
|
|||
<string name="Fixed">Solved</string>
|
||||
<string name="down">Down</string>
|
||||
<string name="more_info">Tap for more info</string>
|
||||
<string name="info">info</string>
|
||||
</resources>
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<changelog>
|
||||
<release version="2.0.7" versioncode="30" >
|
||||
<change>Correction of informative state messages</change>
|
||||
</release>
|
||||
<release version="2.0.6" versioncode="29" >
|
||||
<change>Corrected changelog</change>
|
||||
</release>
|
||||
|
|
Loading…
Reference in a new issue