Skip to content

Commit 680dfe9

Browse files
committed
fix: add intent
1 parent 784a258 commit 680dfe9

File tree

1 file changed

+4
-3
lines changed
  • src/android/java/com/janeasystems/cdvnodejsmobile

1 file changed

+4
-3
lines changed

src/android/java/com/janeasystems/cdvnodejsmobile/NodeJS.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import android.util.Log;
1616
import android.app.Activity;
1717
import android.content.Context;
18+
import android.content.Intent;
1819
import android.content.res.AssetManager;
1920
import android.content.pm.PackageInfo;
2021
import android.content.pm.PackageManager;
@@ -385,7 +386,7 @@ private void clearReset() {
385386
editor.commit();
386387
}
387388

388-
private void isReset() {
389+
private boolean isReset() {
389390
SharedPreferences prefs = context.getSharedPreferences(SHARED_PREFS, Context.MODE_PRIVATE);
390391
boolean result = prefs.getBoolean(FORCE_RESET, false);
391392
clearReset();
@@ -611,7 +612,7 @@ private static boolean getOptionRedirectOutputToLogcat(final JSONObject startOpt
611612
protected void doColdRestart() {
612613
String baseError = "Unable to cold restart application: ";
613614
try {
614-
logInfo("Cold restarting application");
615+
Log.d(LOGTAG, "Cold restarting application");
615616
Context c = applicationContext;
616617
//check if the context is given
617618
if (c != null) {
@@ -637,7 +638,7 @@ protected void doColdRestart() {
637638
mStartActivity.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
638639
c.getApplicationContext().startActivity(mStartActivity);
639640

640-
Log.i(TAG,"Killing application for cold restart");
641+
Log.i(LOGTAG,"Killing application for cold restart");
641642
//kill the application
642643
System.exit(0);
643644
} else {

0 commit comments

Comments
 (0)