package org.dronix.android.unisannio;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class AteneoHomeActivity extends Activity
{
	private AteneoHomeActivity ac;
	private static final String ATENEO_URL = "http://www.unisannio.it";

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_ateneo_home);
		this.ac = this;

		TextView avvisi_tv = (TextView) findViewById(R.id.ateneo_avvisi);
		avvisi_tv.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v)
			{
				Intent gbNews = new Intent(ac, GBNewsActivity.class);
				gbNews.putExtra("TABNUMBER", 1);
				startActivity(gbNews);
			}
		});

		TextView website_tv = (TextView) findViewById(R.id.website);
		website_tv.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v)
			{
				Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(ATENEO_URL));
				startActivity(browserIntent);
			}
		});

		TextView map_tv = (TextView) findViewById(R.id.ateneo_map);
		map_tv.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v)
			{
				Intent ateneoMap = new Intent(ac, UnisannioMapActivity.class);
				ateneoMap.putExtra("faculty", 0);
				startActivity(ateneoMap);
			}
		});
	}
}

@@ -836,9 +836,9 @@
 R%22, 
-1
+0
 );%0A%09

Fix wrong Avvisi page on Ateneo Home