X-Git-Url: https://git.mdrn.pl/mobilnebezpieczenstwo.git/blobdiff_plain/4b08fd3d054a0b4872d60adc7627bfdef069c39b..be45943134f44b96728f516e91a66149e51443c0:/app/src/main/java/com/samsung/srpol/ui/LicenseActivity.java diff --git a/app/src/main/java/com/samsung/srpol/ui/LicenseActivity.java b/app/src/main/java/com/samsung/srpol/ui/LicenseActivity.java new file mode 100644 index 0000000..a69f7b2 --- /dev/null +++ b/app/src/main/java/com/samsung/srpol/ui/LicenseActivity.java @@ -0,0 +1,62 @@ +/* + Copyright (C) 2014 Samsung Electronics Polska Sp. z o.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU AFFERO General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + You may obtain a copy of the License at + + http://www.gnu.org/licenses/agpl-3.0.txt + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +package com.samsung.srpol.ui; + +import com.samsung.srpol.R; +import com.samsung.srpol.utils.Utils; + +import android.graphics.Paint; +import android.os.Bundle; +import android.support.v7.app.ActionBarActivity; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.ImageButton; +import android.widget.TextView; + +public class LicenseActivity extends ActionBarActivity { + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_license); + + TextView descriptionTextLink = (TextView) findViewById(R.id.license_link); + descriptionTextLink.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG); + descriptionTextLink.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + Utils.startBrowser(LicenseActivity.this, getString(R.string.license_link)); + } + }); + + ImageButton backBtn = (ImageButton) findViewById(R.id.back_button); + backBtn.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View arg0) { + finish(); + } + }); + } + +}