More dead code
Change-Id: I3178d47c955b060c5d5ab1f0029347b325887fa0
This commit is contained in:
parent
51af59fc66
commit
14623ba3c2
|
@ -48,7 +48,6 @@ public class Preferences {
|
|||
private static final String AUTO_ADVANCE_DIRECTION = "autoAdvance";
|
||||
private static final String TRUSTED_SENDERS = "trustedSenders";
|
||||
private static final String LAST_ACCOUNT_USED = "lastAccountUsed";
|
||||
private static final String REQUIRE_MANUAL_SYNC_DIALOG_SHOWN = "requireManualSyncDialogShown";
|
||||
private static final String CONFIRM_DELETE = "confirm_delete";
|
||||
private static final String CONFIRM_SEND = "confirm_send";
|
||||
@Deprecated
|
||||
|
@ -257,22 +256,6 @@ public class Preferences {
|
|||
.apply();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets whether the require manual sync dialog has been shown for the specified account.
|
||||
* It should only be shown once per account.
|
||||
*/
|
||||
public boolean getHasShownRequireManualSync(Account account) {
|
||||
return getBoolean(account.getEmailAddress(), REQUIRE_MANUAL_SYNC_DIALOG_SHOWN, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether the require manual sync dialog has been shown for the specified account.
|
||||
* It should only be shown once per account.
|
||||
*/
|
||||
public void setHasShownRequireManualSync(Account account, boolean value) {
|
||||
setBoolean(account.getEmailAddress(), REQUIRE_MANUAL_SYNC_DIALOG_SHOWN, value);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
mSharedPreferences.edit().clear().apply();
|
||||
}
|
||||
|
@ -285,20 +268,6 @@ public class Preferences {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method for setting a boolean value on a per-account preference.
|
||||
*/
|
||||
private void setBoolean(String account, String key, Boolean value) {
|
||||
mSharedPreferences.edit().putBoolean(makeKey(account, key), value).apply();
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method for getting a boolean value from a per-account preference.
|
||||
*/
|
||||
private boolean getBoolean(String account, String key, boolean def) {
|
||||
return mSharedPreferences.getBoolean(makeKey(account, key), def);
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method for creating a per account preference key.
|
||||
*/
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2011 The Android Open Source 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.android.email;
|
||||
|
||||
import com.android.emailcommon.provider.Account;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.DialogInterface.OnClickListener;
|
||||
|
||||
public class RequireManualSyncDialog extends AlertDialog implements OnClickListener {
|
||||
|
||||
public RequireManualSyncDialog(Context context, Account account) {
|
||||
super(context);
|
||||
setMessage(context.getResources().getString(R.string.require_manual_sync_message));
|
||||
setButton(DialogInterface.BUTTON_POSITIVE, context.getString(android.R.string.ok), this);
|
||||
Preferences.getPreferences(context).setHasShownRequireManualSync(account, true);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
// No-op.
|
||||
}
|
||||
}
|
|
@ -53,8 +53,6 @@ public class GeneralPreferences extends PreferenceFragment implements
|
|||
|
||||
private boolean mSettingsChanged = false;
|
||||
|
||||
CharSequence[] mSizeSummaries;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
|
Loading…
Reference in New Issue