2012-07-09 Miguel de Dios <miguel.dedios@artica.es>
* src/pandroid_event_viewer/pandorafms/About.java, src/pandroid_event_viewer/pandorafms/Options.java, src/pandroid_event_viewer/pandorafms/EventList.java, src/pandroid_event_viewer/pandorafms/CreateIncidentActivity.java, src/pandroid_event_viewer/pandorafms/PopupValidationEvent.java, src/pandroid_event_viewer/pandorafms/Main.java: erased the preprocesor "@Override" for to avoid error messages in a compiler with default configs. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6756 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5eb4d7f6c6
commit
ca389b1a06
|
@ -1,3 +1,14 @@
|
||||||
|
2012-07-09 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* src/pandroid_event_viewer/pandorafms/About.java,
|
||||||
|
src/pandroid_event_viewer/pandorafms/Options.java,
|
||||||
|
src/pandroid_event_viewer/pandorafms/EventList.java,
|
||||||
|
src/pandroid_event_viewer/pandorafms/CreateIncidentActivity.java,
|
||||||
|
src/pandroid_event_viewer/pandorafms/PopupValidationEvent.java,
|
||||||
|
src/pandroid_event_viewer/pandorafms/Main.java: erased the
|
||||||
|
preprocesor "@Override" for to avoid error messages in a compiler
|
||||||
|
with default configs.
|
||||||
|
|
||||||
2012-07-06 Santiago Munín <burning1@gmail.com>
|
2012-07-06 Santiago Munín <burning1@gmail.com>
|
||||||
* src/pandroid_event_viewer/pandorafms/Core.java: Service will only start if options were configured.
|
* src/pandroid_event_viewer/pandorafms/Core.java: Service will only start if options were configured.
|
||||||
* src/pandroid_event_viewer/pandorafms/API.java: Removed a //TODO comment.
|
* src/pandroid_event_viewer/pandorafms/API.java: Removed a //TODO comment.
|
||||||
|
|
|
@ -33,7 +33,7 @@ import android.widget.TextView;
|
||||||
*/
|
*/
|
||||||
public class About extends Activity {
|
public class About extends Activity {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
@ -47,7 +47,6 @@ public class About extends Activity {
|
||||||
CheckBox check_show = (CheckBox) findViewById(R.id.dont_show_again_extended);
|
CheckBox check_show = (CheckBox) findViewById(R.id.dont_show_again_extended);
|
||||||
|
|
||||||
check_show.setOnClickListener(new View.OnClickListener() {
|
check_show.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
CheckBox check_show = (CheckBox) v;
|
CheckBox check_show = (CheckBox) v;
|
||||||
if (check_show.isChecked()) {
|
if (check_show.isChecked()) {
|
||||||
|
|
|
@ -53,7 +53,6 @@ public class CreateIncidentActivity extends Activity {
|
||||||
((Button) findViewById(R.id.incident_create_button))
|
((Button) findViewById(R.id.incident_create_button))
|
||||||
.setOnClickListener(new OnClickListener() {
|
.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (title != null && title.length() > 0) {
|
if (title != null && title.length() > 0) {
|
||||||
dialog = ProgressDialog
|
dialog = ProgressDialog
|
||||||
|
|
|
@ -278,22 +278,18 @@ public class EventList extends ListActivity {
|
||||||
showLoadingEvents = false;
|
showLoadingEvents = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getCount() {
|
public int getCount() {
|
||||||
return this.object.eventList.size() + 1;
|
return this.object.eventList.size() + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object getItem(int position) {
|
public Object getItem(int position) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public long getItemId(int position) {
|
public long getItemId(int position) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public View getView(int position, View convertView, ViewGroup parent) {
|
public View getView(int position, View convertView, ViewGroup parent) {
|
||||||
View view;
|
View view;
|
||||||
|
|
||||||
|
@ -330,7 +326,7 @@ public class EventList extends ListActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
button.setOnClickListener(new View.OnClickListener() {
|
button.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
object.offset += object.pagination;
|
object.offset += object.pagination;
|
||||||
loadMoreEvents();
|
loadMoreEvents();
|
||||||
|
@ -500,7 +496,6 @@ public class EventList extends ListActivity {
|
||||||
.findViewById(R.id.create_incident_button))
|
.findViewById(R.id.create_incident_button))
|
||||||
.setOnClickListener(new OnClickListener() {
|
.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Intent intent = new Intent(
|
Intent intent = new Intent(
|
||||||
getBaseContext(),
|
getBaseContext(),
|
||||||
|
@ -598,7 +593,6 @@ public class EventList extends ListActivity {
|
||||||
this.object = object;
|
this.object = object;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View arg0) {
|
public void onClick(View arg0) {
|
||||||
EventListItem item = this.object.eventList.get(mPosition);
|
EventListItem item = this.object.eventList.get(mPosition);
|
||||||
item.opened = !item.opened;
|
item.opened = !item.opened;
|
||||||
|
@ -616,7 +610,6 @@ public class EventList extends ListActivity {
|
||||||
private class OnClickListenerButtonValidate implements OnClickListener {
|
private class OnClickListenerButtonValidate implements OnClickListener {
|
||||||
public int id_event;
|
public int id_event;
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Intent i = new Intent(getApplicationContext(),
|
Intent i = new Intent(getApplicationContext(),
|
||||||
PopupValidationEvent.class);
|
PopupValidationEvent.class);
|
||||||
|
|
|
@ -148,21 +148,18 @@ public class Main extends Activity {
|
||||||
combo = (Spinner) findViewById(R.id.profile_combo);
|
combo = (Spinner) findViewById(R.id.profile_combo);
|
||||||
combo.setOnItemSelectedListener(new OnItemSelectedListener() {
|
combo.setOnItemSelectedListener(new OnItemSelectedListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onItemSelected(AdapterView<?> parent, View view,
|
public void onItemSelected(AdapterView<?> parent, View view,
|
||||||
int pos, long id) {
|
int pos, long id) {
|
||||||
String selected = parent.getItemAtPosition(pos).toString();
|
String selected = parent.getItemAtPosition(pos).toString();
|
||||||
setProfile(selected);
|
setProfile(selected);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onNothingSelected(AdapterView<?> arg0) {
|
public void onNothingSelected(AdapterView<?> arg0) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
((ImageView) findViewById(R.id.delete_profile))
|
((ImageView) findViewById(R.id.delete_profile))
|
||||||
.setOnClickListener(new OnClickListener() {
|
.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String profileName = ((Spinner) findViewById(R.id.profile_combo))
|
String profileName = ((Spinner) findViewById(R.id.profile_combo))
|
||||||
.getSelectedItem().toString();
|
.getSelectedItem().toString();
|
||||||
|
@ -180,14 +177,12 @@ public class Main extends Activity {
|
||||||
combo.setSelection(preferences.getInt("filterLastTime", 6));
|
combo.setSelection(preferences.getInt("filterLastTime", 6));
|
||||||
|
|
||||||
buttonReset.setOnClickListener(new View.OnClickListener() {
|
buttonReset.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
reset_form();
|
reset_form();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
buttonSearch.setOnClickListener(new View.OnClickListener() {
|
buttonSearch.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
search_form();
|
search_form();
|
||||||
}
|
}
|
||||||
|
@ -196,18 +191,15 @@ public class Main extends Activity {
|
||||||
buttonbuttonSetAsFilterWatcher
|
buttonbuttonSetAsFilterWatcher
|
||||||
.setOnClickListener(new View.OnClickListener() {
|
.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
save_filter_watcher();
|
save_filter_watcher();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
buttonSaveProfile.setOnClickListener(new OnClickListener() {
|
buttonSaveProfile.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
final EditText profileName = new EditText(getBaseContext());
|
final EditText profileName = new EditText(getBaseContext());
|
||||||
DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {
|
DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {
|
||||||
@Override
|
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
switch (which) {
|
switch (which) {
|
||||||
case DialogInterface.BUTTON_POSITIVE:
|
case DialogInterface.BUTTON_POSITIVE:
|
||||||
|
@ -260,7 +252,7 @@ public class Main extends Activity {
|
||||||
cb.setChecked(preferences.getBoolean("show_advanced", false));
|
cb.setChecked(preferences.getBoolean("show_advanced", false));
|
||||||
cb.setOnCheckedChangeListener(new OnCheckedChangeListener() {
|
cb.setOnCheckedChangeListener(new OnCheckedChangeListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onCheckedChanged(CompoundButton buttonView,
|
public void onCheckedChanged(CompoundButton buttonView,
|
||||||
boolean isChecked) {
|
boolean isChecked) {
|
||||||
LinearLayout advancedOptions = (LinearLayout) findViewById(R.id.show_hide_layout);
|
LinearLayout advancedOptions = (LinearLayout) findViewById(R.id.show_hide_layout);
|
||||||
|
|
|
@ -96,7 +96,6 @@ public class Options extends Activity {
|
||||||
|
|
||||||
final Button button = (Button) findViewById(R.id.update_options);
|
final Button button = (Button) findViewById(R.id.update_options);
|
||||||
button.setOnClickListener(new View.OnClickListener() {
|
button.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
save_options();
|
save_options();
|
||||||
}
|
}
|
||||||
|
@ -125,7 +124,6 @@ public class Options extends Activity {
|
||||||
this.setNewRingtone(notificationSound, defaultSoundUri);
|
this.setNewRingtone(notificationSound, defaultSoundUri);
|
||||||
|
|
||||||
notificationSound.setOnClickListener(new OnClickListener() {
|
notificationSound.setOnClickListener(new OnClickListener() {
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Log.i(TAG, "Selecting ringtone");
|
Log.i(TAG, "Selecting ringtone");
|
||||||
Intent intent = new Intent(
|
Intent intent = new Intent(
|
||||||
|
@ -359,7 +357,7 @@ public class Options extends Activity {
|
||||||
} else {
|
} else {
|
||||||
if (!result) {
|
if (!result) {
|
||||||
DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {
|
DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {
|
||||||
@Override
|
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
switch (which) {
|
switch (which) {
|
||||||
case DialogInterface.BUTTON_NEGATIVE:
|
case DialogInterface.BUTTON_NEGATIVE:
|
||||||
|
|
|
@ -49,7 +49,6 @@ public class PopupValidationEvent extends Activity {
|
||||||
final Button button = (Button) findViewById(R.id.button_validate_event);
|
final Button button = (Button) findViewById(R.id.button_validate_event);
|
||||||
|
|
||||||
button.setOnClickListener(new View.OnClickListener() {
|
button.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
validateEvent();
|
validateEvent();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue