mirror of
https://github.com/PurpleI2P/i2pd-android.git
synced 2024-12-06 19:27:28 +01:00
add minimal preferences layout
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
@@ -28,7 +28,7 @@ public class SettingsActivity extends Activity {
|
||||
public static String onBootFileName="/onBoot"; // just file, empty, if exist the do autostart, if not then no.
|
||||
|
||||
//https://gist.github.com/chandruark/3165a5ee3452f2b9ec7736cf1b4c5ea6
|
||||
private void addAutoStartupswitch() {
|
||||
private void addAutoStartupSwitch() {
|
||||
|
||||
try {
|
||||
Intent intent = new Intent();
|
||||
@@ -97,7 +97,7 @@ public class SettingsActivity extends Activity {
|
||||
if (isChecked) {
|
||||
if (!onBoot.exists()) {
|
||||
requestPermission();
|
||||
addAutoStartupswitch();
|
||||
addAutoStartupSwitch();
|
||||
try {
|
||||
if (!onBoot.createNewFile())
|
||||
Log.d(TAG, "Cant create new wile on: "+onBoot.getAbsolutePath());
|
||||
|
||||
Reference in New Issue
Block a user