From a1aaa52c2a00c4288fcb57453b679946bce08da2 Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Wed, 21 Feb 2018 00:24:43 +0100 Subject: [PATCH] add link to NewPipe blog --- app/src/main/java/org/schabi/newpipe/MainActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/MainActivity.java b/app/src/main/java/org/schabi/newpipe/MainActivity.java index ac058f52c..e696f867f 100644 --- a/app/src/main/java/org/schabi/newpipe/MainActivity.java +++ b/app/src/main/java/org/schabi/newpipe/MainActivity.java @@ -23,6 +23,7 @@ package org.schabi.newpipe; import android.annotation.SuppressLint; import android.content.Intent; import android.content.SharedPreferences; +import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.os.Looper; @@ -154,8 +155,9 @@ public class MainActivity extends AppCompatActivity { headerServiceView = findViewById(R.id.drawer_header_service_view); Button action = findViewById(R.id.drawer_header_action_button); action.setOnClickListener(view -> { - Toast.makeText(this, - R.string.drawer_header_action_paceholder_text, Toast.LENGTH_SHORT).show(); + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setData(Uri.parse("https://newpipe.schabi.org/blog/")); + startActivity(intent); drawer.closeDrawers(); }); }