market link

This commit is contained in:
Yuriy Liskov
2020-01-26 18:57:12 +02:00
parent 3a6e81525a
commit e2fbf69d8d

View File

@@ -1,6 +1,8 @@
package com.liskovsoft.leankeyboard.settings.about;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
@@ -13,6 +15,8 @@ import com.liskovsoft.leankeykeyboard.R;
import java.util.List;
public class AboutFragment extends GuidedStepSupportFragment {
private static final String MARKET_LINK = "https://play.google.com/store/apps/details?id=org.liskovsoft.androidtv.rukeyboard";
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
@@ -40,4 +44,10 @@ public class AboutFragment extends GuidedStepSupportFragment {
.build();
actions.add(action);
}
@Override
public void onGuidedActionClicked(GuidedAction action) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(MARKET_LINK));
startActivity(intent);
}
}