/* * Copyright 2014, 2015, 2016 Anael Mobilia * * This file is part of NextINpact-Unofficial. * * NextINpact-Unofficial is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * NextINpact-Unofficial 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 NextINpact-Unofficial. If not, see <http://www.gnu.org/licenses/> */ package com.pcinpact; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.Toast; import com.pcinpact.utils.Constantes; /** * A propos... * * @author Anael */ public class AboutActivity extends AppCompatActivity { @Override public void onCreate(Bundle savedInstanceState) { // Je lance l'activité super.onCreate(savedInstanceState); // Gestion du thème sombre (option utilisateur) Boolean isThemeSombre = Constantes.getOptionBoolean(getApplicationContext(), R.string.idOptionThemeSombre, R.bool.defautOptionThemeSombre); if (isThemeSombre) { // Si actif, on applique le style setTheme(R.style.NextInpactThemeFonce); } setContentView(R.layout.activity_about); // Affichage du numéro de version Toast monToast = Toast.makeText(getApplicationContext(), Constantes.getUserAgent(getApplicationContext()), Toast.LENGTH_LONG); monToast.show(); } }