/*
 * 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.fragment;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.github.rtyley.android.sherlock.roboguice.fragment.RoboSherlockFragment;
import org.gdg.frisbee.android.R;

/**
 * Created with IntelliJ IDEA.
 * User: maui
 * Date: 08.07.13
 * Time: 01:49
 * To change this template use File | Settings | File Templates.
 */
public class AboutFragment extends RoboSherlockFragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_about, null);
    }
}

@@ -1,10 +1,11 @@
 /*
+%0D
 %0A * Copy
@@ -38,19 +38,21 @@
  Project
+%0D
 %0A *
+%0D
 %0A * Lice
@@ -110,16 +110,17 @@
 cense%22);
+%0D
 %0A * you 
@@ -179,16 +179,17 @@
 License.
+%0D
 %0A * You 
@@ -223,19 +223,21 @@
 cense at
+%0D
 %0A *
+%0D
 %0A * %09htt
@@ -275,19 +275,21 @@
 ENSE-2.0
+%0D
 %0A *
+%0D
 %0A * Unle
@@ -351,16 +351,17 @@
 software
+%0D
 %0A * dist
@@ -421,16 +421,17 @@
 %22 BASIS,
+%0D
 %0A * WITH
@@ -498,16 +498,17 @@
 implied.
+%0D
 %0A * See 
@@ -570,16 +570,17 @@
 ions and
+%0D
 %0A * limi
@@ -605,21 +605,24 @@
 License.
+%0D
 %0A */
-%0A
+%0D%0A%0D
 %0Apackage
@@ -655,17 +655,102 @@
 ragment;
-%0A
+%0D%0A%0D%0Aimport android.content.pm.PackageInfo;%0D%0Aimport android.content.pm.PackageManager;%0D
 %0Aimport 
@@ -767,16 +767,17 @@
 .Bundle;
+%0D
 %0Aimport 
@@ -793,16 +793,17 @@
 til.Log;
+%0D
 %0Aimport 
@@ -830,16 +830,17 @@
 nflater;
+%0D
 %0Aimport 
@@ -857,16 +857,17 @@
 ew.View;
+%0D
 %0Aimport 
@@ -889,16 +889,50 @@
 ewGroup;
+%0D%0Aimport android.widget.TextView;%0D
 %0Aimport 
@@ -1006,16 +1006,17 @@
 ragment;
+%0D
 %0Aimport 
@@ -1045,13 +1045,53 @@
 d.R;
-%0A
+%0D%0Aimport roboguice.inject.InjectView;%0D%0A%0D
 %0A/**
+%0D
 %0A * 
@@ -1117,16 +1117,17 @@
 iJ IDEA.
+%0D
 %0A * User
@@ -1132,16 +1132,17 @@
 er: maui
+%0D
 %0A * Date
@@ -1151,16 +1151,17 @@
 08.07.13
+%0D
 %0A * Time
@@ -1167,16 +1167,17 @@
 e: 01:49
+%0D
 %0A * To c
@@ -1233,20 +1233,22 @@
 mplates.
+%0D
 %0A */
+%0D
 %0Apublic 
@@ -1297,17 +1297,76 @@
 agment %7B
-%0A
+%0D%0A%0D%0A    @InjectView(R.id.version)%0D%0A    TextView mVersion;%0D%0A%0D
 %0A    @Ov
@@ -1371,16 +1371,17 @@
 Override
+%0D
 %0A    pub
@@ -1476,16 +1476,17 @@
 State) %7B
+%0D
 %0A       
@@ -1545,13 +1545,697 @@
 ll);
+%0D
 %0A    %7D
-%0A%7D
+%0D%0A%0D%0A    @Override%0D%0A    public void onActivityCreated(Bundle savedInstanceState) %7B%0D%0A        super.onActivityCreated(savedInstanceState);%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public void onViewCreated(View view, Bundle savedInstanceState) %7B%0D%0A        super.onViewCreated(view, savedInstanceState);%0D%0A%0D%0A        PackageInfo pInfo = null;%0D%0A        try %7B%0D%0A            pInfo = getActivity().getPackageManager().getPackageInfo(getActivity().getPackageName(), 0);%0D%0A            mVersion.setText(pInfo.versionName);%0D%0A        %7D catch (PackageManager.NameNotFoundException e) %7B%0D%0A            e.printStackTrace();  //To change body of catch statement use File %7C Settings %7C File Templates.%0D%0A        %7D%0D%0A    %7D%0D%0A%7D%0D
 %0A

Add GDG[x] logo and version