Formatting

This commit is contained in:
GaidamakUA 2016-02-17 18:00:54 +02:00
parent f0ed7e4e25
commit 68b1ccb9db
2 changed files with 54 additions and 54 deletions

View file

@ -5,11 +5,11 @@
android:orientation="vertical">
<TextView
android:id="@+id/messageEditTextLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:id="@+id/messageEditTextLabel"
android:text="@string/osb_comment_dialog_message"/>
android:text="@string/osb_comment_dialog_message" />
<EditText
android:id="@+id/messageEditText"
@ -18,34 +18,34 @@
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:inputType="textMultiLine"
android:minLines="1"/>
android:minLines="1" />
<CheckBox
android:id="@+id/closeChangeSetCheckBox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="@string/close_changeset"/>
android:text="@string/close_changeset" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="@string/user_name"/>
android:text="@string/user_name" />
<EditText
android:id="@+id/userNameEditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"/>
android:layout_marginRight="5dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="@string/user_password"/>
android:text="@string/user_password" />
<EditText
android:id="@+id/passwordEditText"
@ -53,5 +53,5 @@
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:inputType="textPassword"/>
android:inputType="textPassword" />
</LinearLayout>

View file

@ -45,7 +45,7 @@ public class OsmBugsRemoteUtil implements OsmBugsUtil {
public OsmBugResult commit(OsmNotesPoint point, String text, Action action) {
StringBuilder b = new StringBuilder();
String msg = "";
if(action == OsmPoint.Action.CREATE) {
if (action == OsmPoint.Action.CREATE) {
b.append(getNotesApi()).append("?"); //$NON-NLS-1$
b.append("lat=").append(point.getLatitude()); //$NON-NLS-1$
b.append("&lon=").append(point.getLongitude()); //$NON-NLS-1$
@ -54,13 +54,13 @@ public class OsmBugsRemoteUtil implements OsmBugsUtil {
} else {
b.append(getNotesApi()).append("/");
b.append(point.getId()); //$NON-NLS-1$
if(action == OsmPoint.Action.REOPEN) {
if (action == OsmPoint.Action.REOPEN) {
b.append("/reopen");
msg = "reopen note";
} else if(action == OsmPoint.Action.MODIFY) {
} else if (action == OsmPoint.Action.MODIFY) {
b.append("/comment");
msg = "adding comment";
} else if(action == OsmPoint.Action.DELETE) {
} else if (action == OsmPoint.Action.DELETE) {
b.append("/close");
msg = "close note";
}