mirror of
https://github.com/bspeice/UNCCGameDay
synced 2024-12-04 13:58:11 -05:00
Remove the Alert Settings menu item
This commit is contained in:
parent
18087e4e0b
commit
721882a492
@ -15,10 +15,6 @@
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/GameDayTheme"
|
||||
android:name="com.uncc.gameday.GameDay" >
|
||||
<activity
|
||||
android:name="com.uncc.gameday.activities.Alerts"
|
||||
android:label="@string/title_activity_alerts" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name="com.uncc.gameday.activities.Parking"
|
||||
android:label="@string/title_activity_parking" >
|
||||
|
@ -1,50 +0,0 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/alerts_label_alerts_to_receive"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/alerts_label_alerts_to_receive"
|
||||
android:textColor="@color/black" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/alerts_check_timed"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/alerts_check_timed"
|
||||
android:onClick="onClickTimedAlerts"
|
||||
style="@style/GameDayTheme" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/alerts_check_organizations"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/alerts_check_organizations"
|
||||
style="@style/GameDayTheme"
|
||||
android:onClick="onClickOrganizationAlerts" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/alerts_check_university"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/alerts_check_university"
|
||||
android:onClick="onClickUniversityAlerts"
|
||||
style="@style/GameDayTheme" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/getAlertsButton"
|
||||
android:layout_width="186dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="left|center_vertical"
|
||||
android:text="@string/button_get_alerts"
|
||||
android:textColor="@color/black"
|
||||
style="@style/GameDayTheme" />
|
||||
|
||||
</LinearLayout>
|
@ -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();
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user