1515import android .util .Log ;
1616import android .app .Activity ;
1717import android .content .Context ;
18+ import android .content .Intent ;
1819import android .content .res .AssetManager ;
1920import android .content .pm .PackageInfo ;
2021import 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