version:1.1.8
fix: update:修复发送app使用情况
This commit is contained in:
1 parent
d28b677cde
commit
0ffa6571f7
3 files changed
+7
-2
No files matched your search
@@ -24,6 +24,8 @@ import com.xwad.os.base.BaseFragment;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.lang.reflect.ParameterizedType;
|
||||
|
||||
import me.jessyan.autosize.AutoSizeCompat;
|
||||
|
||||
/**
|
||||
* @author: lml
|
||||
* @date: 2021/12/15
|
||||
@@ -82,6 +84,8 @@ public abstract class BaseMvvmFragment<VM extends ViewModel, VDB extends ViewDat
|
||||
@Nullable
|
||||
@Override
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
||||
AutoSizeCompat.autoConvertDensityOfGlobal(getResources());
|
||||
|
||||
//ViewDataBinding
|
||||
mViewDataBinding = DataBindingUtil.inflate(inflater, getLayoutId(), container, false);
|
||||
mViewDataBinding.setLifecycleOwner(this);
|
||||
|
||||
@@ -799,6 +799,7 @@ public class OpenApkUtils {
|
||||
// 4. 启动Activity(处理异常)
|
||||
try {
|
||||
activity.startActivity(intent);
|
||||
sendRuningApp(packageName);
|
||||
} catch (Exception e) {
|
||||
if (e instanceof android.content.ActivityNotFoundException) {
|
||||
Log.e(TAG, "未找到目标Activity:" + packageName + "/" + className);
|
||||
|
||||
Reference in new issue
Block a user