2016-09-07 10:30:46 +00:00
|
|
|
/**
|
|
|
|
* InfosheetActivity.java
|
|
|
|
* Implements the app's infosheet activity
|
2017-01-19 12:36:49 +00:00
|
|
|
* The infosheet activity sets up infosheet screens for "About"
|
2016-09-07 10:30:46 +00:00
|
|
|
*
|
|
|
|
* This file is part of
|
2017-01-19 12:36:49 +00:00
|
|
|
* TRACKBOOK - Movement Recorder for Android
|
2016-09-07 10:30:46 +00:00
|
|
|
*
|
2017-01-19 12:36:49 +00:00
|
|
|
* Copyright (c) 2016-17 - Y20K.org
|
2016-09-07 10:30:46 +00:00
|
|
|
* Licensed under the MIT-License
|
|
|
|
* http://opensource.org/licenses/MIT
|
2017-01-19 12:36:49 +00:00
|
|
|
*
|
|
|
|
* Trackbook uses osmdroid - OpenStreetMap-Tools for Android
|
|
|
|
* https://github.com/osmdroid/osmdroid
|
2016-09-07 10:30:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
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) {
|
2016-09-16 15:45:10 +00:00
|
|
|
setContentView(R.layout.activity_infosheet_about);
|
2016-09-07 10:30:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|