Reorganize preference widgets

// FREEBIE
This commit is contained in:
Moxie Marlinspike
2017-09-21 10:03:05 -07:00
parent 4828a8a274
commit e5e0bc2333
26 changed files with 40 additions and 44 deletions

View File

@@ -8,6 +8,10 @@ import android.support.v7.preference.PreferenceFragmentCompat;
import android.view.View;
import org.thoughtcrime.securesms.components.CustomDefaultPreference;
import org.thoughtcrime.securesms.preferences.widgets.ColorPickerPreference;
import org.thoughtcrime.securesms.preferences.widgets.ColorPickerPreferenceDialogFragmentCompat;
import org.thoughtcrime.securesms.preferences.widgets.RingtonePreference;
import org.thoughtcrime.securesms.preferences.widgets.RingtonePreferenceDialogFragmentCompat;
public abstract class CorrectedPreferenceFragment extends PreferenceFragmentCompat {

View File

@@ -12,12 +12,12 @@ import android.support.v7.preference.ListPreference;
import android.support.v7.preference.Preference;
import android.support.v7.preference.PreferenceManager;
import android.text.TextUtils;
import android.util.Log;
import org.thoughtcrime.securesms.ApplicationPreferencesActivity;
import org.thoughtcrime.securesms.R;
import org.thoughtcrime.securesms.crypto.MasterSecret;
import org.thoughtcrime.securesms.notifications.MessageNotifier;
import org.thoughtcrime.securesms.preferences.widgets.AdvancedRingtonePreference;
import org.thoughtcrime.securesms.util.TextSecurePreferences;
public class NotificationsPreferenceFragment extends ListSummaryPreferenceFragment {

View File

@@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.preferences;
package org.thoughtcrime.securesms.preferences.widgets;
import android.content.Context;
import android.net.Uri;

View File

@@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.preferences;
package org.thoughtcrime.securesms.preferences.widgets;
import android.annotation.SuppressLint;
import android.content.Context;
@@ -11,7 +11,6 @@ import android.support.v7.preference.DialogPreference;
import android.support.v7.preference.PreferenceViewHolder;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.ImageView;
import com.takisoft.colorpicker.ColorPickerDialog;

View File

@@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.preferences;
package org.thoughtcrime.securesms.preferences.widgets;
import android.app.Dialog;
import android.content.DialogInterface;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.thoughtcrime.securesms.preferences;
package org.thoughtcrime.securesms.preferences.widgets;
import android.content.Context;
import android.graphics.drawable.GradientDrawable;

View File

@@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.preferences;
package org.thoughtcrime.securesms.preferences.widgets;
public class NotificationPrivacyPreference {

View File

@@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.preferences;
package org.thoughtcrime.securesms.preferences.widgets;
import android.content.Context;

View File

@@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.preferences;
package org.thoughtcrime.securesms.preferences.widgets;
import android.Manifest;
import android.annotation.SuppressLint;
@@ -15,8 +15,6 @@ import android.net.Uri;
import android.os.Build;
import android.provider.MediaStore;
import android.support.annotation.IntDef;
import android.support.annotation.Nullable;
import android.support.annotation.StringRes;
import android.support.v4.content.res.TypedArrayUtils;
import android.support.v7.preference.DialogPreference;
import android.support.v7.preference.Preference;

View File

@@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.preferences;
package org.thoughtcrime.securesms.preferences.widgets;
import android.Manifest;

View File

@@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.preferences;
package org.thoughtcrime.securesms.preferences.widgets;
import android.content.Context;

View File

@@ -1,13 +1,11 @@
package org.thoughtcrime.securesms.preferences;
package org.thoughtcrime.securesms.preferences.widgets;
import android.content.Context;
import android.os.Build;
import android.preference.RingtonePreference;
import android.support.annotation.RequiresApi;
import android.support.v7.preference.PreferenceViewHolder;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
import org.thoughtcrime.securesms.R;