2012-08-25 Santiago Munín <burning1@gmail.com>

* src/pandroid_event_viewer/pandorafms/Main.java: Bug with api version detect solved.
	* src/pandroid_event_viewer/pandorafms/EventList.java: Comments are cut when they're too long.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6914 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
santimunin 2012-08-25 09:25:33 +00:00
parent cf58c999c6
commit dce3d0bef6
4 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2012-08-25 Santiago Munín <burning1@gmail.com>
* src/pandroid_event_viewer/pandorafms/Main.java: Bug with api version detect solved.
* src/pandroid_event_viewer/pandorafms/EventList.java: Comments are cut when they're too long.
2012-08-24 Santiago Munín <burning1@gmail.com>
* src/pandroid_event_viewer/pandorafms/Core.java: Fixed a bug (possible null argument as image).
* src/pandroid_event_viewer/pandorafms/EventList.java: Create incident is displayed as a dialog

View File

@ -123,7 +123,8 @@
<Spinner
android:id="@+id/refresh_combo"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
<TextView

View File

@ -457,6 +457,10 @@ public class EventList extends ListActivity {
}
if (item.user_comment.length() != 0) {
if (item.user_comment.length()> 200) {
item.user_comment = item.user_comment.substring(0, 197);
item.user_comment = item.user_comment.concat("...");
}
text = (TextView) viewEventExtended
.findViewById(R.id.comments_text);
text.setText(item.user_comment);

View File

@ -67,6 +67,7 @@ public class Main extends Activity {
private static String PROFILE_PREFIX = "profile:";
private static String DEFAULT_PROFILE_NAME = "Default";
private static String DEFAULT_PROFILE = "0|3||||0|6";
private static String VERSION_4_0_2_LABEL = "v4.0.2";
private PandroidEventviewerActivity object;
private HashMap<Integer, String> pandoraGroups;
private Spinner comboSeverity;
@ -89,7 +90,8 @@ public class Main extends Activity {
this.getString(R.string.const_string_preferences),
Activity.MODE_PRIVATE);
if (preferences.getString("api_version", "v4.0.2").equals("v4.0.2")) {
if (preferences.getString("api_version", "")
.equals(VERSION_4_0_2_LABEL)) {
version402 = true;
}