trim()s inserted

This commit is contained in:
Jens 2023-01-01 23:51:51 +01:00
parent 58f24953f3
commit ad0d9962b5
7 changed files with 8 additions and 6 deletions

View File

@ -107,7 +107,7 @@ public class Rule implements Comparable<Rule>
} }
public void setName(String name) public void setName(String name)
{ {
this.name = name; this.name = name.trim();
} }
public static void readFromFile() public static void readFromFile()

View File

@ -104,7 +104,7 @@ public class Rule implements Comparable<Rule>
} }
public void setName(String name) public void setName(String name)
{ {
this.name = name; this.name = name.trim();
} }
public static void readFromFile() public static void readFromFile()

View File

@ -107,7 +107,7 @@ public class Rule implements Comparable<Rule>
} }
public void setName(String name) public void setName(String name)
{ {
this.name = name; this.name = name.trim();
} }
public static void readFromFile() public static void readFromFile()

View File

@ -64,7 +64,7 @@ public class PointOfInterest implements Comparable<PointOfInterest>
public void setName(String desiredName) public void setName(String desiredName)
{ {
this.oldName = this.name; this.oldName = this.name;
this.name = desiredName; this.name = desiredName.trim();
} }
public Location getLocation() public Location getLocation()

View File

@ -62,7 +62,7 @@ public class Profile implements Comparable<Profile>
public void setName(String name) public void setName(String name)
{ {
this.oldName = this.name; this.oldName = this.name;
this.name = name; this.name = name.trim();
} }
public String getName() public String getName()

View File

@ -1430,7 +1430,7 @@ public class Trigger
public void setTriggerParameter2(String triggerParameter2) public void setTriggerParameter2(String triggerParameter2)
{ {
this.triggerParameter2 = triggerParameter2; this.triggerParameter2 = triggerParameter2.trim();
} }
public TimeFrame getTimeFrame() public TimeFrame getTimeFrame()

View File

@ -42,11 +42,13 @@
</EditText> </EditText>
<TextView <TextView
android:visibility="gone"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/messageType" /> android:text="@string/messageType" />
<RadioGroup <RadioGroup
android:visibility="gone"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" > android:layout_height="wrap_content" >