Automation/app/src/main/java/com/jens/automation2/ActivitySettings.java

28 lines
717 B
Java
Raw Normal View History

2021-02-16 13:42:49 +01:00
package com.jens.automation2;
import android.os.Bundle;
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;
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);
if(BuildConfig.FLAVOR.equals("apkFlavor"))
{
chkPrefUpdateCheck = (CheckBoxPreference) findPreference("chkPrefUpdateCheck");
chkPrefUpdateCheck.setEnabled(true);
}
2021-02-16 13:42:49 +01:00
}
}