This repository has been archived by the owner on Feb 25, 2022. It is now read-only.
forked from weisserd/LDAP-Sync
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add settings screen for debug logging...
- Loading branch information
Showing
31 changed files
with
263 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
app/src/main/java/de/wikilab/android/ldapsync/activity/SettingsActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package de.wikilab.android.ldapsync.activity; | ||
|
||
import android.annotation.TargetApi; | ||
import android.content.Context; | ||
import android.content.Intent; | ||
import android.content.res.Configuration; | ||
import android.media.Ringtone; | ||
import android.media.RingtoneManager; | ||
import android.net.Uri; | ||
import android.os.Build; | ||
import android.os.Bundle; | ||
import android.preference.ListPreference; | ||
import android.preference.Preference; | ||
import android.preference.PreferenceActivity; | ||
import android.app.ActionBar; | ||
import android.preference.PreferenceFragment; | ||
import android.preference.PreferenceManager; | ||
import android.preference.RingtonePreference; | ||
import android.provider.Settings; | ||
import android.support.annotation.Nullable; | ||
import android.text.TextUtils; | ||
import android.view.MenuItem; | ||
import android.support.v4.app.NavUtils; | ||
|
||
import de.wikilab.android.ldapsync.R; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* A {@link PreferenceActivity} that presents a set of application settings. On | ||
* handset devices, settings are presented as a single list. On tablets, | ||
* settings are split by category, with category headers shown to the left of | ||
* the list of settings. | ||
* <p> | ||
* See <a href="http://developer.android.com/design/patterns/settings.html"> | ||
* Android Design: Settings</a> for design guidelines and the <a | ||
* href="http://developer.android.com/guide/topics/ui/settings.html">Settings | ||
* API Guide</a> for more information on developing a Settings UI. | ||
*/ | ||
public class SettingsActivity extends PreferenceActivity { | ||
|
||
@Override | ||
protected void onCreate(@Nullable Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
addPreferencesFromResource(R.xml.pref_general); | ||
findPreference("go_to_sys_sync").setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { | ||
@Override | ||
public boolean onPreferenceClick(Preference preference) { | ||
startActivity(new Intent(Settings.ACTION_SYNC_SETTINGS)); | ||
return true; | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.