Skip to content

Commit

Permalink
Merge pull request #3358 from TeamAmaze/feature/jni_fix
Browse files Browse the repository at this point in the history
Fix jni function name
  • Loading branch information
VishalNehra authored Jun 15, 2022
2 parents 6eec21a + aa80dc7 commit de465aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
reportSenderFactoryClasses = AcraReportSenderFactory.class)
public class AppConfig extends GlideApplication {

private static final Logger LOG = LoggerFactory.getLogger(AppConfig.class);
private Logger log = null;

private UtilitiesProvider utilsProvider;
private RequestQueue requestQueue;
Expand Down Expand Up @@ -107,6 +107,7 @@ public void onCreate() {
// disabling file exposure method check for api n+
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
log = LoggerFactory.getLogger(AppConfig.class);
}

@Override
Expand Down Expand Up @@ -256,7 +257,9 @@ protected void initACRA() {
.build();
ACRA.init(this, acraConfig);
} catch (final ACRAConfigurationException ace) {
LOG.warn("failed to initialize ACRA", ace);
if (log != null) {
log.warn("failed to initialize ACRA", ace);
}
ErrorActivity.reportError(
this,
ace,
Expand Down
2 changes: 1 addition & 1 deletion file_operations/src/main/c/rootoperations.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <errno.h>
#include <stdbool.h>

JNIEXPORT jboolean JNICALL Java_com_amaze_filemanager_file_1operations_filesystem_root_NativeOperations_isDirectory(
JNIEXPORT jboolean JNICALL Java_com_amaze_filemanager_fileoperations_filesystem_root_NativeOperations_isDirectory(
JNIEnv * env,
jobject thiz,
jstring path
Expand Down

0 comments on commit de465aa

Please sign in to comment.