package com.marverenic.music.ui.about;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.marverenic.music.BuildConfig;
import com.marverenic.music.JockeyApplication;
import com.marverenic.music.R;
import com.marverenic.music.data.store.ThemeStore;
import com.marverenic.music.ui.BaseActivity;

import javax.inject.Inject;

public class AboutActivity extends BaseActivity implements View.OnClickListener {

    @Inject ThemeStore mThemeStore;

    public static Intent newIntent(Context context) {
        return new Intent(context, AboutActivity.class);
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);

        JockeyApplication.getComponent(this).inject(this);

        ((TextView) findViewById(R.id.aboutVersion)).setText(BuildConfig.VERSION_NAME);
        ((ImageView) findViewById(R.id.aboutAppIcon)).setImageDrawable(mThemeStore.getLargeAppIcon());
        findViewById(R.id.aboutMarverenicLogo).setOnClickListener(this);
    }


    @Override
    public void onClick(View v) {
        Intent webIntent = new Intent(Intent.ACTION_VIEW);
        webIntent.setData(Uri.parse("http://marverenic.github.io/Jockey/"));
        startActivity(webIntent);
    }
}

@@ -146,16 +146,57 @@
 Bundle;%0A
+import android.support.v7.app.ActionBar;%0A
 import a
@@ -980,24 +980,275 @@
 ect(this);%0A%0A
+        setSupportActionBar(findViewById(R.id.toolbar));%0A        ActionBar toolbar = getSupportActionBar();%0A        toolbar.setDisplayShowHomeEnabled(true);%0A        toolbar.setDisplayHomeAsUpEnabled(true);%0A        toolbar.setHomeButtonEnabled(true);%0A%0A
         ((Te
@@ -1506,17 +1506,16 @@
 %0A    %7D%0A%0A
-%0A
     @Ove

Fix missing up button on about page