version:1.1.8
fix: update:修复发送app使用情况
This commit is contained in:
@@ -17,8 +17,8 @@ android {
|
|||||||
minSdkVersion 23
|
minSdkVersion 23
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
|
|
||||||
versionCode 20
|
versionCode 21
|
||||||
versionName "1.1.9"
|
versionName "1.2.0"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ import com.xwad.os.base.BaseFragment;
|
|||||||
import java.lang.ref.WeakReference;
|
import java.lang.ref.WeakReference;
|
||||||
import java.lang.reflect.ParameterizedType;
|
import java.lang.reflect.ParameterizedType;
|
||||||
|
|
||||||
|
import me.jessyan.autosize.AutoSizeCompat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author: lml
|
* @author: lml
|
||||||
* @date: 2021/12/15
|
* @date: 2021/12/15
|
||||||
@@ -82,6 +84,8 @@ public abstract class BaseMvvmFragment<VM extends ViewModel, VDB extends ViewDat
|
|||||||
@Nullable
|
@Nullable
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
||||||
|
AutoSizeCompat.autoConvertDensityOfGlobal(getResources());
|
||||||
|
|
||||||
//ViewDataBinding
|
//ViewDataBinding
|
||||||
mViewDataBinding = DataBindingUtil.inflate(inflater, getLayoutId(), container, false);
|
mViewDataBinding = DataBindingUtil.inflate(inflater, getLayoutId(), container, false);
|
||||||
mViewDataBinding.setLifecycleOwner(this);
|
mViewDataBinding.setLifecycleOwner(this);
|
||||||
|
|||||||
@@ -799,6 +799,7 @@ public class OpenApkUtils {
|
|||||||
// 4. 启动Activity(处理异常)
|
// 4. 启动Activity(处理异常)
|
||||||
try {
|
try {
|
||||||
activity.startActivity(intent);
|
activity.startActivity(intent);
|
||||||
|
sendRuningApp(packageName);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (e instanceof android.content.ActivityNotFoundException) {
|
if (e instanceof android.content.ActivityNotFoundException) {
|
||||||
Log.e(TAG, "未找到目标Activity:" + packageName + "/" + className);
|
Log.e(TAG, "未找到目标Activity:" + packageName + "/" + className);
|
||||||
|
|||||||
Reference in New Issue
Block a user