From 7547d3e963dab2b1ef467ad27c3f0d25e150b50c Mon Sep 17 00:00:00 2001 From: Zachary Heidepriem Date: Mon, 6 Nov 2017 19:10:44 -0800 Subject: Move voicemail settings to dialer UI The voicemail module should not contain any UI code. Bug: 37258159 Test: DialerSettingsActivityTest,VoicemailSettingsFragmentTest. A future CL is refactoring VoicemailChangePinActivity into a fragment. PiperOrigin-RevId: 174125949 Change-Id: I89cf6a083b0a0952332440d76e7ae0cb1c801931 --- java/com/android/voicemail/impl/OmtpConstants.java | 27 +--------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'java/com/android/voicemail/impl/OmtpConstants.java') diff --git a/java/com/android/voicemail/impl/OmtpConstants.java b/java/com/android/voicemail/impl/OmtpConstants.java index 97da2a8e3..d94e36138 100644 --- a/java/com/android/voicemail/impl/OmtpConstants.java +++ b/java/com/android/voicemail/impl/OmtpConstants.java @@ -13,11 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License */ -package com.android.voicemail.impl; -import android.support.annotation.IntDef; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; +package com.android.voicemail.impl; /** * Wrapper class to hold relevant OMTP constants as defined in the OMTP spec. @@ -212,28 +209,6 @@ public class OmtpConstants { public static final String RESPONSE_CHANGE_PIN_INVALID_CHARACTER = "password contains invalid characters"; - @Retention(RetentionPolicy.SOURCE) - @IntDef( - value = { - CHANGE_PIN_SUCCESS, - CHANGE_PIN_TOO_SHORT, - CHANGE_PIN_TOO_LONG, - CHANGE_PIN_TOO_WEAK, - CHANGE_PIN_MISMATCH, - CHANGE_PIN_INVALID_CHARACTER, - CHANGE_PIN_SYSTEM_ERROR - } - ) - public @interface ChangePinResult {} - - public static final int CHANGE_PIN_SUCCESS = 0; - public static final int CHANGE_PIN_TOO_SHORT = 1; - public static final int CHANGE_PIN_TOO_LONG = 2; - public static final int CHANGE_PIN_TOO_WEAK = 3; - public static final int CHANGE_PIN_MISMATCH = 4; - public static final int CHANGE_PIN_INVALID_CHARACTER = 5; - public static final int CHANGE_PIN_SYSTEM_ERROR = 6; - public static String getClientType() { String manufacturer = truncate( -- cgit v1.2.3