2012-06-01 Santiago Munín <burnin1@gmail.com>

* Little changes on the whole app: Fixed some Lint errors.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6404 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
santimunin 2012-06-01 13:48:48 +00:00
parent b57af4bd65
commit 24b2e8363a
7 changed files with 18 additions and 10 deletions

View File

@ -1,3 +1,6 @@
2012-06-01 Santiago Munín <burnin1@gmail.com>
* Little changes on the whole app: Fixed some Lint errors.
2012-06-01 Santiago Munín <burnin1@gmail.com>
* src/pandroid_event_viewer/pandorafms/Core.java: Added image setting methods.
* src/pandroid_event_viewer/pandorafms/EventList.java: Removed image setting methods.

View File

@ -23,17 +23,18 @@
>
<ImageView
android:layout_weight="0"
android:contentDescription="@string/pandorafms_logo_description"
android:id="@+id/img_logo_about"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="0dp"
android:layout_gravity="center"
android:padding="5px"
android:padding="5dp"
android:src="@drawable/pandorafms_logo"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Copyright (c) 2011 Artica"
android:text="@string/artica_copyright"
/>
<TextView
android:layout_width="wrap_content"

View File

@ -23,11 +23,12 @@
>
<ImageView
android:layout_weight="0"
android:contentDescription="@string/pandorafms_logo_description"
android:id="@+id/img_logo_about"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="0dp"
android:layout_gravity="center"
android:padding="5px"
android:padding="5dp"
android:src="@drawable/pandorafms_logo"
/>
<TextView
@ -53,9 +54,9 @@
android:layout_height="wrap_content"
>
<TextView
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="Don't show again"
android:text="@string/dont_show_again"
android:layout_weight="2"
/>
<CheckBox

View File

@ -102,4 +102,7 @@
<string name="img_severity">Severity image</string>
<string name="img_group">Group image</string>
<string name="img_type">Type image</string>
<string name="artica_copyright">Copyright (&#169;) 2011 Artica</string>
<string name="dont_show_again">Don\'t show again</string>
<string name="pandorafms_logo_description">PandoraFMS\'s logo</string>
</resources>

View File

@ -216,7 +216,7 @@ public class Main extends Activity {
for (int i = 0; i < lines.length; i++) {
String[] groups = lines[i].split(";", 21);
this.pandoraGroups.put(new Integer(groups[0]), groups[1]);
this.pandoraGroups.put(Integer.valueOf(groups[0]), groups[1]);
array.add(groups[1]);
}

View File

@ -121,7 +121,7 @@ public class PandroidEventviewerService extends IntentService {
serializeParams2Api(context, false, true, true)));
return_api = Core.httpGet(getApplicationContext(), parameters);
return_api = return_api.replace("\n", "");
this.more_criticity = new Integer(return_api).intValue();
this.more_criticity = Integer.valueOf(return_api).intValue();
notificationEvent(context);
} else {
this.more_criticity = -1;

View File

@ -97,7 +97,7 @@ public class PopupValidationEvent extends Activity {
parameters = new ArrayList<NameValuePair>();
parameters.add(new BasicNameValuePair("op", "set"));
parameters.add(new BasicNameValuePair("op2", "validate_events"));
parameters.add(new BasicNameValuePair("id", new Integer(this.id_event)
parameters.add(new BasicNameValuePair("id", Integer.valueOf(this.id_event)
.toString()));
parameters.add(new BasicNameValuePair("other", this.comment));
String return_api = Core.httpGet(getApplicationContext(), parameters);