Fixed compilation
This commit is contained in:
@@ -111,7 +111,9 @@ public class RestartMainActivity extends Activity
|
||||
_tv.setMaxLines(2);
|
||||
_tv.setMinLines(2);
|
||||
_tv.setText(R.string.restarting_please_wait);
|
||||
_tv.setTextSize(30f);
|
||||
_tv.setPadding((int)(width * 0.1), (int)(height * 0.1), (int)(width * 0.1), 0);
|
||||
_layout.addView(_tv);
|
||||
|
||||
_videoLayout = new FrameLayout(this);
|
||||
_videoLayout.addView(_layout);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user