/** * InfosheetActivity.java * Implements the app's infosheet activity * The infosheet activity sets up infosheet screens for "About" * * This file is part of * TRACKBOOK - Movement Recorder for Android * * Copyright (c) 2016-17 - Y20K.org * Licensed under the MIT-License * http://opensource.org/licenses/MIT * * Trackbook uses osmdroid - OpenStreetMap-Tools for Android * https://github.com/osmdroid/osmdroid */ package org.y20k.trackbook; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import org.y20k.trackbook.helpers.TrackbookKeys; /** * InfosheetActivity class */ public final class InfosheetActivity extends AppCompatActivity implements TrackbookKeys { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // get activity title from intent Intent intent = this.getIntent(); // set activity title if (intent.hasExtra(EXTRA_INFOSHEET_TITLE)) { this.setTitle(intent.getStringExtra(EXTRA_INFOSHEET_TITLE)); } // set activity view if (intent.hasExtra(EXTRA_INFOSHEET_CONTENT) && intent.getIntExtra(EXTRA_INFOSHEET_CONTENT, -1) == INFOSHEET_CONTENT_ABOUT) { setContentView(R.layout.activity_infosheet_about); } } }