Fix crash

This commit is contained in:
NekoInverter 2020-02-06 10:34:47 +08:00
parent d7f0860f5a
commit 50db92ea03
2 changed files with 7 additions and 4 deletions

View File

@ -7,8 +7,8 @@ android {
applicationId "org.meowcat.edxposed.manager"
minSdkVersion 21
targetSdkVersion 27
versionCode 45404
versionName "4.5.4"
versionCode 45405
versionName "4.5.4.1"
}
buildTypes {
release {
@ -16,6 +16,10 @@ android {
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
shrinkResources false
}
}
compileOptions {
sourceCompatibility = 1.8

View File

@ -42,7 +42,7 @@ import static org.meowcat.edxposed.manager.XposedApp.WRITE_EXTERNAL_PERMISSION;
public class DownloadDetailsVersionsFragment extends ListFragment {
private DownloadDetailsActivity mActivity;
private View rootView;
private static View rootView;
@Override
public void onActivityCreated(Bundle savedInstanceState) {
@ -124,7 +124,6 @@ public class DownloadDetailsVersionsFragment extends ListFragment {
@Override
public void onDownloadFinished(Context context, DownloadsUtil.DownloadInfo info) {
File localFile = new File(info.localFilename);
View rootView = ((Activity) context).findViewById(R.id.snackbar);
if (!localFile.isFile())
return;