package com.runner.sportsmeter.activities;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import com.runner.sportsmeter.BuildConfig;
import com.runner.sportsmeter.R;
import com.runner.sportsmeter.common.Constants;

/**
 * Created by angelr on 09-Oct-15.
 */
public class AboutActivity extends Activity {

    private TextView buildVersion, companyAddress, companyEmail, companyFacebookPage, googleLegalInfo;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.l_about_layout);

        // todo google legal notices
        // this must be used for Services attribution text as part of a "Legal Notices" section in your application.
        // Including legal notices as an independent menu item, or as part of an "About" menu item, is recommended.
        buildVersion = (TextView) findViewById(R.id.build_version);
        googleLegalInfo = (TextView) findViewById(R.id.google_legal);
        companyAddress = (TextView) findViewById(R.id.company_address);
        companyEmail = (TextView) findViewById(R.id.company_email);
        companyFacebookPage = (TextView) findViewById(R.id.company_facebook_page);

        String appVersion = getString(R.string.app_name) + " v. " + BuildConfig.VERSION_NAME;
        buildVersion.setText(appVersion);
        companyAddress.setText(Constants.ADDRESS);
        companyEmail.setText(Constants.EMAIL);
        companyFacebookPage.setText(Constants.FACEBOOK_PAGE);
    }
}

@@ -424,16 +424,33 @@
 ookPage,
+ companyWebsite, 
  googleL
@@ -1169,24 +1169,96 @@
 any_email);%0A
+        companyWebsite = (TextView) findViewById(R.id.company_website);%0A
         comp
@@ -1563,16 +1563,67 @@
 EMAIL);%0A
+        companyWebsite.setText(Constants.WEBSITE);%0A
         

add website in About