mirror of
https://gitlab.com/openlp/android.git
synced 2024-12-22 20:02:50 +00:00
Latest set
This commit is contained in:
parent
d76013d616
commit
aea3b07f78
@ -167,8 +167,7 @@ public class SettingsActivity extends PreferenceActivity {
|
|||||||
// Set the listener to watch for value changes.
|
// Set the listener to watch for value changes.
|
||||||
preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);
|
preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);
|
||||||
|
|
||||||
// Trigger the listener immediately with the preference's
|
// Trigger the listener immediately with the preference's current value.
|
||||||
// current value.
|
|
||||||
sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,
|
sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,
|
||||||
PreferenceManager
|
PreferenceManager
|
||||||
.getDefaultSharedPreferences(preference.getContext())
|
.getDefaultSharedPreferences(preference.getContext())
|
||||||
|
@ -85,7 +85,7 @@ public class OpenLPHttpClient {
|
|||||||
public String getBaseUrl(){
|
public String getBaseUrl(){
|
||||||
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
|
|
||||||
useSSL =sharedPrefs.getBoolean(context.getString(R.string.key_ssl_use), false);
|
useSSL = sharedPrefs.getBoolean(context.getString(R.string.key_ssl_use), false);
|
||||||
String host = sharedPrefs.getString(context.getString(R.string.key_host),
|
String host = sharedPrefs.getString(context.getString(R.string.key_host),
|
||||||
context.getString(R.string.host_default_value));
|
context.getString(R.string.host_default_value));
|
||||||
String port = sharedPrefs.getString(context.getString(R.string.key_port), "4316");
|
String port = sharedPrefs.getString(context.getString(R.string.key_port), "4316");
|
||||||
|
@ -23,6 +23,7 @@ import android.graphics.Color;
|
|||||||
import android.graphics.Typeface;
|
import android.graphics.Typeface;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
import android.preference.PreferenceManager;
|
||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
@ -139,7 +140,14 @@ public class LiveListFragment extends OpenLPFragment {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
setListAdapter(adapter);
|
setListAdapter(adapter);
|
||||||
//getListView().setSelection(selected - 1);
|
|
||||||
|
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
|
Boolean autoscroll =
|
||||||
|
sharedPrefs.getBoolean(context.getString(R.string.key_auto_scroll), false);
|
||||||
|
|
||||||
|
if (autoscroll){
|
||||||
|
getListView().setSelection(selected - 1);
|
||||||
|
}
|
||||||
Log.i(LOG_TAG, "populate_display - exit");
|
Log.i(LOG_TAG, "populate_display - exit");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ import android.content.SharedPreferences;
|
|||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.graphics.Typeface;
|
import android.graphics.Typeface;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.preference.PreferenceManager;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
@ -44,6 +45,7 @@ import org.openlp.android2.common.OpenLPHttpClient;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
public class ServiceListFragment extends OpenLPFragment {
|
public class ServiceListFragment extends OpenLPFragment {
|
||||||
@ -167,11 +169,17 @@ public class ServiceListFragment extends OpenLPFragment {
|
|||||||
text1.setTypeface(null, Typeface.NORMAL);
|
text1.setTypeface(null, Typeface.NORMAL);
|
||||||
}
|
}
|
||||||
return view;
|
return view;
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
setListAdapter(adapter);
|
setListAdapter(adapter);
|
||||||
//getListView().setSelection(selected - 1);
|
|
||||||
|
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
|
Boolean autoscroll =
|
||||||
|
sharedPrefs.getBoolean(context.getString(R.string.key_auto_scroll), false);
|
||||||
|
|
||||||
|
if (autoscroll){
|
||||||
|
getListView().setSelection(selected - 1);
|
||||||
|
}
|
||||||
Log.i(LOG_TAG, "populate_display - exit");
|
Log.i(LOG_TAG, "populate_display - exit");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,4 +8,5 @@
|
|||||||
<!-- INTEGER -->
|
<!-- INTEGER -->
|
||||||
<integer name="connectionTimeoutDefaultValue">3000</integer>
|
<integer name="connectionTimeoutDefaultValue">3000</integer>
|
||||||
<integer name="textSizeDefaultValue">14</integer>
|
<integer name="textSizeDefaultValue">14</integer>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
|
<string name="key_auto_scroll">key_auto_scroll</string>
|
||||||
<string name="key_enable_custom_timeout">key_enable_custom_timeout</string>
|
<string name="key_enable_custom_timeout">key_enable_custom_timeout</string>
|
||||||
<string name="key_connection_timeout">key_connection_timeout</string>
|
<string name="key_connection_timeout">key_connection_timeout</string>
|
||||||
<string name="key_text_size">key_text_size</string>
|
<string name="key_text_size">key_text_size</string>
|
||||||
|
@ -28,11 +28,14 @@
|
|||||||
<string name="custom_timeout">Set Custom Timeout</string>
|
<string name="custom_timeout">Set Custom Timeout</string>
|
||||||
<string name="display_blank_summary">Select the required display</string>
|
<string name="display_blank_summary">Select the required display</string>
|
||||||
<string name="display_desktop">Display Desktop background</string>
|
<string name="display_desktop">Display Desktop background</string>
|
||||||
|
<string name="display_list_autoscroll">Allow the selected item to sctoll to the centre of the list</string>
|
||||||
<string name="display_reset">Show Live display</string>
|
<string name="display_reset">Show Live display</string>
|
||||||
|
<string name="display_settings">Display Setting</string>
|
||||||
<string name="display_screen">Display Black only</string>
|
<string name="display_screen">Display Black only</string>
|
||||||
<string name="display_theme">Display Theme only</string>
|
<string name="display_theme">Display Theme only</string>
|
||||||
<string name="enable_custom_timeouts">Enable Custom Timeouts</string>
|
<string name="enable_custom_timeouts">Enable Custom Timeouts</string>
|
||||||
<string name="enter_alert_text">Enter Alert Text</string>
|
<string name="enter_alert_text">Enter Alert Text</string>
|
||||||
|
<string name="enable_autoscroll">Allow displays to auto center</string>
|
||||||
<string name="home">Home</string>
|
<string name="home">Home</string>
|
||||||
<string name="httpreturn_unauthorised">Unauthorised Access, please enter valid username and password</string>
|
<string name="httpreturn_unauthorised">Unauthorised Access, please enter valid username and password</string>
|
||||||
<string name="live_list">Live List</string>
|
<string name="live_list">Live List</string>
|
||||||
@ -44,7 +47,6 @@
|
|||||||
<string name="process">Process</string>
|
<string name="process">Process</string>
|
||||||
<string name="service_list">Service List</string>
|
<string name="service_list">Service List</string>
|
||||||
<string name="stage_view">Stage View</string>
|
<string name="stage_view">Stage View</string>
|
||||||
<string name="text_size_type">Display Text Size</string>
|
|
||||||
<string name="text_size">Select display text size</string>
|
<string name="text_size">Select display text size</string>
|
||||||
<string name="text_size_summary">Change the Service text size</string>
|
<string name="text_size_summary">Change the Service text size</string>
|
||||||
<string name="title_activity_settings">Settings</string>
|
<string name="title_activity_settings">Settings</string>
|
||||||
|
@ -8,4 +8,10 @@
|
|||||||
android:summary="@string/text_size_summary"
|
android:summary="@string/text_size_summary"
|
||||||
android:title="@string/text_size" />
|
android:title="@string/text_size" />
|
||||||
|
|
||||||
|
<CheckBoxPreference
|
||||||
|
android:key="key_auto_scroll"
|
||||||
|
android:defaultValue="false"
|
||||||
|
android:summary="@string/display_list_autoscroll"
|
||||||
|
android:title="@string/enable_autoscroll"/>
|
||||||
|
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<header
|
<header
|
||||||
android:fragment="org.openlp.android2.activities.SettingsActivity$GeneralPreferenceFragment"
|
android:fragment="org.openlp.android2.activities.SettingsActivity$GeneralPreferenceFragment"
|
||||||
android:title="@string/text_size_type" />
|
android:title="@string/display_settings" />
|
||||||
|
|
||||||
<header
|
<header
|
||||||
android:fragment="org.openlp.android2.activities.SettingsActivity$NotificationPreferenceFragment"
|
android:fragment="org.openlp.android2.activities.SettingsActivity$NotificationPreferenceFragment"
|
||||||
|
Loading…
Reference in New Issue
Block a user