Add public no-arg Fragment constructors
Bug: 10311630 Change-Id: I0243462cdc28b9af3151754a8c8583330418579b
This commit is contained in:
parent
66ac290b35
commit
7985b43ab7
|
@ -54,6 +54,9 @@ public class InsertQuickResponseDialog extends DialogFragment
|
|||
public void onQuickResponseSelected(CharSequence quickResponse);
|
||||
}
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public InsertQuickResponseDialog() {}
|
||||
|
||||
/**
|
||||
* Create and returns new dialog.
|
||||
*
|
||||
|
|
|
@ -123,6 +123,9 @@ public class AccountCheckSettingsFragment extends Fragment {
|
|||
public void onAutoDiscoverComplete(int result, HostAuth hostAuth);
|
||||
}
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public AccountCheckSettingsFragment() {}
|
||||
|
||||
/**
|
||||
* Create a retained, invisible fragment that checks accounts
|
||||
*
|
||||
|
@ -716,6 +719,9 @@ public class AccountCheckSettingsFragment extends Fragment {
|
|||
// UI
|
||||
private String mProgressString;
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public CheckingDialog() {}
|
||||
|
||||
/**
|
||||
* Create a dialog that reports progress
|
||||
* @param progress initial progress indication
|
||||
|
@ -906,6 +912,9 @@ public class AccountCheckSettingsFragment extends Fragment {
|
|||
// Bundle keys for arguments
|
||||
private final static String ARGS_HOST_NAME = "SecurityRequiredDialog.HostName";
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public SecurityRequiredDialog() {}
|
||||
|
||||
public static SecurityRequiredDialog newInstance(AccountCheckSettingsFragment target,
|
||||
String hostName) {
|
||||
SecurityRequiredDialog fragment = new SecurityRequiredDialog();
|
||||
|
|
|
@ -311,6 +311,9 @@ public class AccountSecurity extends Activity {
|
|||
implements DialogInterface.OnClickListener {
|
||||
private static final String BUNDLE_KEY_ACCOUNT_NAME = "account_name";
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public SecurityNeededDialog() {}
|
||||
|
||||
/**
|
||||
* Create a new dialog.
|
||||
*/
|
||||
|
@ -389,6 +392,9 @@ public class AccountSecurity extends Activity {
|
|||
return dialog;
|
||||
}
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public PasswordExpirationDialog() {}
|
||||
|
||||
/**
|
||||
* Note, this actually creates two slightly different dialogs (for expiring vs. expired)
|
||||
*/
|
||||
|
|
|
@ -805,8 +805,7 @@ public class AccountSettings extends PreferenceActivity implements FeedbackEnabl
|
|||
}
|
||||
|
||||
// Force usage of newInstance()
|
||||
private UnsavedChangesDialogFragment() {
|
||||
}
|
||||
public UnsavedChangesDialogFragment() {}
|
||||
|
||||
@Override
|
||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||
|
@ -847,6 +846,9 @@ public class AccountSettings extends PreferenceActivity implements FeedbackEnabl
|
|||
private static final String BUNDLE_KEY_ACCOUNT_NAME = "account_name";
|
||||
private String mReason;
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public LoginWarningDialog() {}
|
||||
|
||||
/**
|
||||
* Create a new dialog.
|
||||
*/
|
||||
|
|
|
@ -63,6 +63,9 @@ public class AccountSettingsEditQuickResponsesFragment extends Fragment {
|
|||
private static final String BUNDLE_KEY_ACTIVITY_TITLE
|
||||
= "AccountSettingsEditQuickResponsesFragment.title";
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public AccountSettingsEditQuickResponsesFragment() {}
|
||||
|
||||
@Override
|
||||
public void onAttach(Activity activity) {
|
||||
super.onAttach(activity);
|
||||
|
|
|
@ -684,6 +684,9 @@ public class AccountSetupBasics extends AccountSetupActivity
|
|||
// Argument bundle keys
|
||||
private final static String BUNDLE_KEY_NOTE = "NoteDialogFragment.Note";
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public NoteDialogFragment() {}
|
||||
|
||||
/**
|
||||
* Create the dialog with parameters
|
||||
*/
|
||||
|
|
|
@ -89,6 +89,9 @@ public class AccountSetupIncomingFragment extends AccountServerBaseFragment
|
|||
private HostAuth mRecvAuth;
|
||||
private EmailServiceInfo mServiceInfo;
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public AccountSetupIncomingFragment() {}
|
||||
|
||||
/**
|
||||
* Called to do initial creation of a fragment. This is called after
|
||||
* {@link #onAttach(Activity)} and before {@link #onActivityCreated(Bundle)}.
|
||||
|
|
|
@ -68,6 +68,9 @@ public class AccountSetupOutgoingFragment extends AccountServerBaseFragment
|
|||
private boolean mStarted;
|
||||
private boolean mLoaded;
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public AccountSetupOutgoingFragment() {}
|
||||
|
||||
/**
|
||||
* Called to do initial creation of a fragment. This is called after
|
||||
* {@link #onAttach(Activity)} and before {@link #onActivityCreated(Bundle)}.
|
||||
|
|
|
@ -45,6 +45,9 @@ public class DebugFragment extends Fragment implements OnCheckedChangeListener,
|
|||
|
||||
private Preferences mPreferences;
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public DebugFragment() {}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
|
|
|
@ -34,6 +34,9 @@ public class DuplicateAccountDialogFragment extends DialogFragment {
|
|||
// Argument bundle keys
|
||||
private final static String BUNDLE_KEY_ACCOUNT_NAME = "NoteDialogFragment.AccountName";
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public DuplicateAccountDialogFragment() {}
|
||||
|
||||
/**
|
||||
* Create the dialog with parameters
|
||||
*/
|
||||
|
|
|
@ -47,6 +47,9 @@ public class EditQuickResponseDialog extends DialogFragment {
|
|||
private static final String QUICK_RESPONSE_CREATE = "quick_response_create";
|
||||
private static final String ACCOUNT_ID = "accountId";
|
||||
|
||||
// Public no-args constructor needed for fragment re-instantiation
|
||||
public EditQuickResponseDialog() {}
|
||||
|
||||
/**
|
||||
* Creates a new dialog to edit an existing QuickResponse or create a new
|
||||
* one.
|
||||
|
|
Loading…
Reference in New Issue