Remove the Alert Settings menu item

This commit is contained in:
bspeice
2013-12-08 20:21:59 -05:00
parent 18087e4e0b
commit 721882a492
4 changed files with 0 additions and 125 deletions

View File

@ -1,68 +0,0 @@
package com.uncc.gameday.activities;
import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.Toast;
import com.uncc.gameday.R;
// TODO: Auto-generated Javadoc
/**
* The Class Alerts.
*/
public class Alerts extends MenuActivity {
/* (non-Javadoc)
* @see com.uncc.gameday.activities.MenuActivity#onCreate(android.os.Bundle)
*/
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_alerts);
}
/**
* On clicking the Timed Alerts box, enable or disable the alerts.
*
* @param view - The view clicked
*/
public void onClickTimedAlerts(View view) {
int toastDuration = Toast.LENGTH_SHORT;
if (((CheckBox) view).isChecked())
// Enable Timed alerts
Toast.makeText(this, "Timed alerts enabled.", toastDuration).show();
else
// Disable Timed alerts
Toast.makeText(this, "Timed alerts disabled.", toastDuration).show();
}
/**
* On clicking the Organization Alerts box, enable or disable the alerts.
*
* @param view the view
*/
public void onClickOrganizationAlerts(View view) {
int toastDuration = Toast.LENGTH_SHORT;
if (((CheckBox) view).isChecked())
// Enable Organization alerts
Toast.makeText(this, "Organization alerts enabled.", toastDuration).show();
else
// Disable Organization alerts
Toast.makeText(this, "Organization alerts disabled.", toastDuration).show();
}
/**
* On clicking the University Alerts box, enable or disable the alerts.
*
* @param view the view
*/
public void onClickUniversityAlerts(View view) {
int toastDuration = Toast.LENGTH_SHORT;
if (((CheckBox) view).isChecked())
// Enable University alerts
Toast.makeText(this, "University alerts enabled.", toastDuration).show();
else
// Disable University alerts
Toast.makeText(this, "University alerts disabled.", toastDuration).show();
}
}

View File

@ -42,9 +42,6 @@ public class MenuActivity extends Activity {
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()){
case R.id.action_alert_settings:
startActivity(new Intent(this, Alerts.class));
break;
case R.id.action_registration:
startActivity(new Intent(this, Registration.class));
break;