2013-12-04 Miguel de Dios <miguel.dedios@artica.es>

* src/pandroid_event_viewer/pandorafms/EventList.java,
	src/pandroid_event_viewer/pandorafms/Main.java: fixed java
	warnings.
	
	* src/pandroid_event_viewer/pandorafms/PandroidEventviewerActivity.java:
	fixed the hack for old pandoras.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9162 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-12-04 16:50:05 +00:00
parent ae21e1b4aa
commit f88a335a14
4 changed files with 12 additions and 26 deletions

View File

@ -1,3 +1,12 @@
2013-12-04 Miguel de Dios <miguel.dedios@artica.es>
* src/pandroid_event_viewer/pandorafms/EventList.java,
src/pandroid_event_viewer/pandorafms/Main.java: fixed java
warnings.
* src/pandroid_event_viewer/pandorafms/PandroidEventviewerActivity.java:
fixed the hack for old pandoras.
2013-12-04 Miguel de Dios <miguel.dedios@artica.es>
* src/pandroid_event_viewer/pandorafms/About.java: removed the

View File

@ -26,7 +26,6 @@ import java.util.Date;
import android.app.Activity;
import android.app.Dialog;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.app.TabActivity;
import android.content.BroadcastReceiver;
import android.content.Context;
@ -78,7 +77,7 @@ public class EventList extends ListActivity {
public PandroidEventviewerActivity object;
private BroadcastReceiver onBroadcast;
public Dialog creatingIncidentDialog;
private Context context = this;
private View currentElement;
@Override

View File

@ -52,7 +52,6 @@ import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.Spinner;
import android.widget.SpinnerAdapter;
import android.widget.Toast;

View File

@ -526,30 +526,9 @@ public class PandroidEventviewerActivity extends TabActivity implements
id_group, severity, status, eventSearch, eventTag, timestamp,
pagination, offset, false, false);
Log.d(TAG, "List of events: " + return_api);
Pattern pattern = Pattern
.compile("Unable to process XML data file '(.*)'");
Matcher matcher;
String filename;
boolean endReplace = false;
int i22 = 0;
while (!endReplace) {
Log.i(TAG + " getEvents - loop", i22 + "");
i22++;
matcher = pattern.matcher(return_api);
if (matcher.find()) {
filename = matcher.group(1);
return_api = return_api
.replaceFirst(
"Unable to process XML data file[^\n]*\n[^\n]*line 187 thread .*\n",
"Bad XML: " + filename);
}
else {
endReplace = true;
}
}
Log.i(TAG + " getEvents - return_api", return_api);
String[] lines = return_api.split("\n");