Fix crash
This commit is contained in:
parent
d7f0860f5a
commit
50db92ea03
|
|
@ -7,8 +7,8 @@ android {
|
||||||
applicationId "org.meowcat.edxposed.manager"
|
applicationId "org.meowcat.edxposed.manager"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 27
|
targetSdkVersion 27
|
||||||
versionCode 45404
|
versionCode 45405
|
||||||
versionName "4.5.4"
|
versionName "4.5.4.1"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
|
@ -16,6 +16,10 @@ android {
|
||||||
shrinkResources true
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
|
debug {
|
||||||
|
minifyEnabled false
|
||||||
|
shrinkResources false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ import static org.meowcat.edxposed.manager.XposedApp.WRITE_EXTERNAL_PERMISSION;
|
||||||
|
|
||||||
public class DownloadDetailsVersionsFragment extends ListFragment {
|
public class DownloadDetailsVersionsFragment extends ListFragment {
|
||||||
private DownloadDetailsActivity mActivity;
|
private DownloadDetailsActivity mActivity;
|
||||||
private View rootView;
|
private static View rootView;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onActivityCreated(Bundle savedInstanceState) {
|
public void onActivityCreated(Bundle savedInstanceState) {
|
||||||
|
|
@ -124,7 +124,6 @@ public class DownloadDetailsVersionsFragment extends ListFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onDownloadFinished(Context context, DownloadsUtil.DownloadInfo info) {
|
public void onDownloadFinished(Context context, DownloadsUtil.DownloadInfo info) {
|
||||||
File localFile = new File(info.localFilename);
|
File localFile = new File(info.localFilename);
|
||||||
View rootView = ((Activity) context).findViewById(R.id.snackbar);
|
|
||||||
if (!localFile.isFile())
|
if (!localFile.isFile())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue