chore: bump version to 3.0.3
This commit is contained in:
+3
-2
@@ -22,8 +22,8 @@ android {
|
||||
minSdk 21
|
||||
//noinspection ExpiredTargetSdkVersion
|
||||
targetSdk 28
|
||||
versionCode 302
|
||||
versionName "3.0.2"
|
||||
versionCode 303
|
||||
versionName "3.0.3"
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
arguments = ["room.schemaLocation": "$projectDir/schemas".toString(), "eventBusIndex": "com.fongmi.android.tv.event.EventIndex"]
|
||||
@@ -150,4 +150,5 @@ dependencies {
|
||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
|
||||
annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.3.1'
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.1.4'
|
||||
implementation 'io.noties.markwon:core:4.6.2'
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.fongmi.android.tv.ui.dialog;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentActivity;
|
||||
import androidx.viewbinding.ViewBinding;
|
||||
|
||||
import com.fongmi.android.tv.databinding.DialogAboutBinding;
|
||||
|
||||
public class AboutDialog extends BaseDialog {
|
||||
|
||||
private DialogAboutBinding binding;
|
||||
|
||||
public static void show(FragmentActivity activity) {
|
||||
new AboutDialog().show(activity.getSupportFragmentManager(), "AboutDialog");
|
||||
}
|
||||
|
||||
public static void show(Fragment fragment) {
|
||||
new AboutDialog().show(fragment.getChildFragmentManager(), "AboutDialog");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ViewBinding getBinding(@NonNull LayoutInflater inflater, @Nullable ViewGroup container) {
|
||||
binding = DialogAboutBinding.inflate(inflater, container, false);
|
||||
return binding;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initEvent() {
|
||||
binding.github.setOnClickListener(v -> openGitHub());
|
||||
}
|
||||
|
||||
private void openGitHub() {
|
||||
try {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
intent.setData(Uri.parse("https://github.com/Tosencen/XMBOX/releases/tag/v3.0.3"));
|
||||
startActivity(intent);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
super.onDestroyView();
|
||||
binding = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user