mirror of
				https://github.com/bspeice/UNCCGameDay
				synced 2025-11-03 18:00:43 -05:00 
			
		
		
		
	Add an initial menu, and allow user to visit alerts page
This commit is contained in:
		@ -4,7 +4,9 @@ import com.uncc.gameday.R;
 | 
			
		||||
 | 
			
		||||
import android.os.Bundle;
 | 
			
		||||
import android.app.Activity;
 | 
			
		||||
import android.content.Intent;
 | 
			
		||||
import android.view.Menu;
 | 
			
		||||
import android.view.MenuItem;
 | 
			
		||||
 | 
			
		||||
public class Alerts extends Activity {
 | 
			
		||||
 | 
			
		||||
@ -22,4 +24,12 @@ public class Alerts extends Activity {
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    @Override
 | 
			
		||||
    public boolean onOptionsItemSelected(MenuItem item) {
 | 
			
		||||
    	switch (item.getItemId()){
 | 
			
		||||
    		case R.id.action_alert_settings:
 | 
			
		||||
    			startActivity(new Intent(this, Alerts.class));
 | 
			
		||||
    	}
 | 
			
		||||
		return true;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,9 @@ import com.uncc.gameday.R.menu;
 | 
			
		||||
 | 
			
		||||
import android.os.Bundle;
 | 
			
		||||
import android.app.Activity;
 | 
			
		||||
import android.content.Intent;
 | 
			
		||||
import android.view.Menu;
 | 
			
		||||
import android.view.MenuItem;
 | 
			
		||||
 | 
			
		||||
public class Home extends Activity {
 | 
			
		||||
 | 
			
		||||
@ -22,5 +24,14 @@ public class Home extends Activity {
 | 
			
		||||
		getMenuInflater().inflate(R.menu.home, menu);
 | 
			
		||||
		return true;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	@Override
 | 
			
		||||
    public boolean onOptionsItemSelected(MenuItem item) {
 | 
			
		||||
    	switch (item.getItemId()){
 | 
			
		||||
    		case R.id.action_alert_settings:
 | 
			
		||||
    			startActivity(new Intent(this, Alerts.class));
 | 
			
		||||
    	}
 | 
			
		||||
		return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user