/*
 * Copyright 2013 The GDG Frisbee Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * 	http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.gdg.frisbee.android.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.MenuItem;

import com.google.android.gms.analytics.HitBuilders;
import com.google.android.gms.analytics.Tracker;

import org.gdg.frisbee.android.R;
import org.gdg.frisbee.android.app.App;

/**
 * GDG Aachen
 * org.gdg.frisbee.android.activity
 * <p/>
 * User: maui
 * Date: 25.06.13
 * Time: 21:15
 */
public class SettingsActivity extends GdgActivity  {


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if(getSupportActionBar() != null) {
            getSupportActionBar().setTitle(R.string.settings);
            getSupportActionBar().setDisplayShowTitleEnabled(true);
            getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        }

        setContentView(R.layout.activity_settings);


        Tracker t = App.getInstance().getTracker();
        // Set screen name.
        // Where path is a String representing the screen name.
        t.setScreenName("/Settings");

        // Send a screen view.
        t.send(new HitBuilders.AppViewBuilder().build());

    }


    @Override
    public boolean onOptionsItemSelected(MenuItem item) {

        if(item.getItemId() == android.R.id.home) {
            finish();
            return true;
        }

        return super.onOptionsItemSelected(item);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    protected void onActivityResult(int requestCode, int responseCode, Intent intent) {
        super.onActivityResult(requestCode, responseCode, intent);

    }

}

@@ -14,16 +14,21 @@
 ght 2013
+-2015
  The GDG
@@ -683,99 +683,17 @@
 oid.
-content.Intent;%0D%0Aimport android.os.Bundle;%0D%0Aimport android.support.v7.app.ActionBarActivity
+os.Bundle
 ;%0D%0Ai
@@ -912,129 +912,8 @@
 %0D%0A%0D%0A
-/**%0D%0A * GDG Aachen%0D%0A * org.gdg.frisbee.android.activity%0D%0A * %3Cp/%3E%0D%0A * User: maui%0D%0A * Date: 25.06.13%0D%0A * Time: 21:15%0D%0A */%0D%0A
 publ
@@ -958,20 +958,17 @@
 ctivity 
- %7B%0D%0A
+%7B
 %0D%0A%0D%0A    
@@ -1090,16 +1090,17 @@
       if
+ 
 (getSupp
@@ -1391,26 +1391,24 @@
 ttings);%0D%0A%0D%0A
-%0D%0A
         Trac
@@ -1685,18 +1685,16 @@
    %7D%0D%0A%0D%0A
-%0D%0A
     @Ove
@@ -1771,16 +1771,17 @@
       if
+ 
 (item.ge
@@ -1930,271 +1930,8 @@
 em);
-    //To change body of overridden methods use File %7C Settings %7C File Templates.%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected void onActivityResult(int requestCode, int responseCode, Intent intent) %7B%0D%0A        super.onActivityResult(requestCode, responseCode, intent);%0D%0A
 %0D%0A  

reformat code SettingsActivity