From 481c4b39f2acc626c59480b6cf49b6b048873f33 Mon Sep 17 00:00:00 2001 From: Joey Rizzoli Date: Tue, 14 Nov 2017 20:43:16 +0100 Subject: Messaging: rebrand to LineageOS Change-Id: I07576c52f809bd89ac5192634e16bba481e8e7ba Signed-off-by: Joey Rizzoli --- .../ui/conversation/ComposeMessageView.java | 2 +- .../conversationlist/ConversationListItemView.java | 2 +- src/com/cyanogenmod/messaging/util/PrefsUtils.java | 52 ---------------------- src/org/lineageos/messaging/util/PrefsUtils.java | 52 ++++++++++++++++++++++ 4 files changed, 54 insertions(+), 54 deletions(-) delete mode 100644 src/com/cyanogenmod/messaging/util/PrefsUtils.java create mode 100644 src/org/lineageos/messaging/util/PrefsUtils.java diff --git a/src/com/android/messaging/ui/conversation/ComposeMessageView.java b/src/com/android/messaging/ui/conversation/ComposeMessageView.java index a2e9a95..b8e5bef 100644 --- a/src/com/android/messaging/ui/conversation/ComposeMessageView.java +++ b/src/com/android/messaging/ui/conversation/ComposeMessageView.java @@ -70,7 +70,7 @@ import com.android.messaging.util.MediaUtil; import com.android.messaging.util.OsUtil; import com.android.messaging.util.UiUtils; -import com.cyanogenmod.messaging.util.PrefsUtils; +import org.lineageos.messaging.util.PrefsUtils; import java.util.Collection; import java.util.List; diff --git a/src/com/android/messaging/ui/conversationlist/ConversationListItemView.java b/src/com/android/messaging/ui/conversationlist/ConversationListItemView.java index f8920e0..d88b8e4 100644 --- a/src/com/android/messaging/ui/conversationlist/ConversationListItemView.java +++ b/src/com/android/messaging/ui/conversationlist/ConversationListItemView.java @@ -58,7 +58,7 @@ import com.android.messaging.util.PhoneUtils; import com.android.messaging.util.Typefaces; import com.android.messaging.util.UiUtils; import com.android.messaging.util.UriUtil; -import com.cyanogenmod.messaging.util.PrefsUtils; +import org.lineageos.messaging.util.PrefsUtils; import java.util.List; diff --git a/src/com/cyanogenmod/messaging/util/PrefsUtils.java b/src/com/cyanogenmod/messaging/util/PrefsUtils.java deleted file mode 100644 index 7247bdb..0000000 --- a/src/com/cyanogenmod/messaging/util/PrefsUtils.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2016 The CyanogenMod Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.cyanogenmod.messaging.util; - -import android.content.Context; -import com.android.messaging.Factory; -import com.android.messaging.R; -import com.android.messaging.util.BuglePrefs; - -public class PrefsUtils { - public static final String SHOW_EMOTICONS_ENABLED = "pref_show_emoticons"; - - private PrefsUtils() { - //Don't instantiate - } - - /** - * Returns whether or not swipe to dismiss in the ConversationListFragment deletes - * the conversation rather than archiving it. - * @return hopefully true - */ - public static boolean isSwipeRightToDeleteEnabled() { - final BuglePrefs prefs = BuglePrefs.getApplicationPrefs(); - final Context context = Factory.get().getApplicationContext(); - final String prefKey = context.getString(R.string.swipe_right_deletes_conversation_key); - final boolean defaultValue = context.getResources().getBoolean( - R.bool.swipe_right_deletes_conversation_default); - return prefs.getBoolean(prefKey, defaultValue); - } - - public static boolean isShowEmoticonsEnabled() { - final BuglePrefs prefs = BuglePrefs.getApplicationPrefs(); - final Context context = Factory.get().getApplicationContext(); - final boolean defaultValue = context.getResources().getBoolean( - R.bool.show_emoticons_pref_default); - return prefs.getBoolean(SHOW_EMOTICONS_ENABLED, defaultValue); - } -} diff --git a/src/org/lineageos/messaging/util/PrefsUtils.java b/src/org/lineageos/messaging/util/PrefsUtils.java new file mode 100644 index 0000000..06c61ed --- /dev/null +++ b/src/org/lineageos/messaging/util/PrefsUtils.java @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2016 The CyanogenMod Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.lineageos.messaging.util; + +import android.content.Context; +import com.android.messaging.Factory; +import com.android.messaging.R; +import com.android.messaging.util.BuglePrefs; + +public class PrefsUtils { + public static final String SHOW_EMOTICONS_ENABLED = "pref_show_emoticons"; + + private PrefsUtils() { + //Don't instantiate + } + + /** + * Returns whether or not swipe to dismiss in the ConversationListFragment deletes + * the conversation rather than archiving it. + * @return hopefully true + */ + public static boolean isSwipeRightToDeleteEnabled() { + final BuglePrefs prefs = BuglePrefs.getApplicationPrefs(); + final Context context = Factory.get().getApplicationContext(); + final String prefKey = context.getString(R.string.swipe_right_deletes_conversation_key); + final boolean defaultValue = context.getResources().getBoolean( + R.bool.swipe_right_deletes_conversation_default); + return prefs.getBoolean(prefKey, defaultValue); + } + + public static boolean isShowEmoticonsEnabled() { + final BuglePrefs prefs = BuglePrefs.getApplicationPrefs(); + final Context context = Factory.get().getApplicationContext(); + final boolean defaultValue = context.getResources().getBoolean( + R.bool.show_emoticons_pref_default); + return prefs.getBoolean(SHOW_EMOTICONS_ENABLED, defaultValue); + } +} -- cgit v1.2.3