add link to NewPipe blog

This commit is contained in:
Christian Schabesberger 2018-02-21 00:24:43 +01:00
parent b3a509ad14
commit a1aaa52c2a
1 changed files with 4 additions and 2 deletions

View File

@ -23,6 +23,7 @@ package org.schabi.newpipe;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.os.Looper; import android.os.Looper;
@ -154,8 +155,9 @@ public class MainActivity extends AppCompatActivity {
headerServiceView = findViewById(R.id.drawer_header_service_view); headerServiceView = findViewById(R.id.drawer_header_service_view);
Button action = findViewById(R.id.drawer_header_action_button); Button action = findViewById(R.id.drawer_header_action_button);
action.setOnClickListener(view -> { action.setOnClickListener(view -> {
Toast.makeText(this, Intent intent = new Intent(Intent.ACTION_VIEW);
R.string.drawer_header_action_paceholder_text, Toast.LENGTH_SHORT).show(); intent.setData(Uri.parse("https://newpipe.schabi.org/blog/"));
startActivity(intent);
drawer.closeDrawers(); drawer.closeDrawers();
}); });
} }