/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.mozstumbler.client.subactivities;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.widget.TextView;
import org.mozilla.mozstumbler.BuildConfig;
import org.mozilla.mozstumbler.R;
import org.mozilla.mozstumbler.client.PackageUtils;
public class AboutActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);
}
@Override
protected void onStart() {
super.onStart();
TextView textView = (TextView) findViewById(R.id.about_version);
String str = getResources().getString(R.string.about_version);
str = String.format(str, PackageUtils.getAppVersion(this));
textView.setText(str);
textView = (TextView) findViewById(R.id.about_git_version);
textView.setText(BuildConfig.GIT_DESCRIPTION);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
return false;
}
}