Fix crash
This commit is contained in:
parent
d7f0860f5a
commit
50db92ea03
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue