Fixed compilation

This commit is contained in:
pelya
2015-01-01 23:05:42 +02:00
parent 8834abfcd3
commit 98bb4c9b88
2 changed files with 5 additions and 2 deletions

View File

@@ -74,6 +74,7 @@ import android.hardware.Sensor;
import android.widget.Toast;
import android.content.pm.PackageManager;
import android.os.Build;
import android.content.Intent;
// TODO: too much code here, split into multiple files, possibly auto-generated menus?
@@ -499,8 +500,8 @@ class Settings
} catch ( IOException e ) { }
new File( p.getFilesDir() + "/" + SettingsFileName ).delete();
Intent intent = new Intent(context, RestartMainActivity.class);
context.startActivity(intent);
Intent intent = new Intent(p, RestartMainActivity.class);
p.startActivity(intent);
System.exit(0);
}