2021-02-16 13:42:49 +01:00
|
|
|
package com.jens.automation2;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
2021-06-08 23:14:09 +02:00
|
|
|
import android.preference.CheckBoxPreference;
|
2021-02-16 13:42:49 +01:00
|
|
|
import android.preference.ListPreference;
|
|
|
|
import android.preference.PreferenceActivity;
|
|
|
|
|
|
|
|
import com.jens.automation2.R.layout;
|
|
|
|
|
|
|
|
public class ActivitySettings extends PreferenceActivity
|
|
|
|
{
|
|
|
|
ListPreference lpStartScreenOptionsValues;
|
2021-06-08 23:14:09 +02:00
|
|
|
CheckBoxPreference chkPrefUpdateCheck;
|
2021-02-16 13:42:49 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState)
|
|
|
|
{
|
|
|
|
super.onCreate(savedInstanceState);
|
2021-06-07 20:02:42 +02:00
|
|
|
addPreferencesFromResource(layout.activity_settings);
|
2021-06-08 23:14:09 +02:00
|
|
|
|
|
|
|
if(BuildConfig.FLAVOR.equals("apkFlavor"))
|
|
|
|
{
|
2021-06-09 22:41:47 +02:00
|
|
|
chkPrefUpdateCheck = (CheckBoxPreference) findPreference("automaticUpdateCheck");
|
2021-06-08 23:14:09 +02:00
|
|
|
chkPrefUpdateCheck.setEnabled(true);
|
|
|
|
}
|
2021-02-16 13:42:49 +01:00
|
|
|
}
|
|
|
|
}
|