Follow API changes.
Change-Id: I1ca0fe365b953fa98a462912309a1c9647277ba7
This commit is contained in:
parent
648e45176b
commit
31e2576791
@ -617,7 +617,7 @@ public class MailboxListFragment extends ListFragment implements OnItemClickList
|
|||||||
// Extract the messageId's to move from the ClipData (set up in MessageListItem)
|
// Extract the messageId's to move from the ClipData (set up in MessageListItem)
|
||||||
final long[] messageIds = new long[count];
|
final long[] messageIds = new long[count];
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
Uri uri = clipData.getItem(i).getUri();
|
Uri uri = clipData.getItemAt(i).getUri();
|
||||||
String msgNum = uri.getPathSegments().get(1);
|
String msgNum = uri.getPathSegments().get(1);
|
||||||
long id = Long.parseLong(msgNum);
|
long id = Long.parseLong(msgNum);
|
||||||
messageIds[i] = id;
|
messageIds[i] = id;
|
||||||
|
@ -591,8 +591,7 @@ public class MessageListFragment extends ListFragment
|
|||||||
}
|
}
|
||||||
// Create ClipData with the Uri of the message we're long clicking
|
// Create ClipData with the Uri of the message we're long clicking
|
||||||
ClipData data = ClipData.newUri(mActivity.getContentResolver(),
|
ClipData data = ClipData.newUri(mActivity.getContentResolver(),
|
||||||
MessageListItem.MESSAGE_LIST_ITEMS_CLIP_LABEL, null,
|
MessageListItem.MESSAGE_LIST_ITEMS_CLIP_LABEL, Message.CONTENT_URI.buildUpon()
|
||||||
Message.CONTENT_URI.buildUpon()
|
|
||||||
.appendPath(Long.toString(listItem.mMessageId))
|
.appendPath(Long.toString(listItem.mMessageId))
|
||||||
.appendQueryParameter(
|
.appendQueryParameter(
|
||||||
EmailProvider.MESSAGE_URI_PARAMETER_MAILBOX_ID,
|
EmailProvider.MESSAGE_URI_PARAMETER_MAILBOX_ID,
|
||||||
|
@ -231,7 +231,7 @@ public class AccountCheckSettingsFragment extends Fragment {
|
|||||||
if (fm.findFragmentByTag(SecurityRequiredDialog.TAG) == null) {
|
if (fm.findFragmentByTag(SecurityRequiredDialog.TAG) == null) {
|
||||||
SecurityRequiredDialog securityRequiredDialog =
|
SecurityRequiredDialog securityRequiredDialog =
|
||||||
SecurityRequiredDialog.newInstance(this, mErrorMessage);
|
SecurityRequiredDialog.newInstance(this, mErrorMessage);
|
||||||
fm.openTransaction()
|
fm.beginTransaction()
|
||||||
.add(securityRequiredDialog, SecurityRequiredDialog.TAG)
|
.add(securityRequiredDialog, SecurityRequiredDialog.TAG)
|
||||||
.commit();
|
.commit();
|
||||||
}
|
}
|
||||||
@ -244,7 +244,7 @@ public class AccountCheckSettingsFragment extends Fragment {
|
|||||||
if (fm.findFragmentByTag(ErrorDialog.TAG) == null) {
|
if (fm.findFragmentByTag(ErrorDialog.TAG) == null) {
|
||||||
ErrorDialog errorDialog =
|
ErrorDialog errorDialog =
|
||||||
ErrorDialog.newInstance(this, mErrorStringId, mErrorMessage);
|
ErrorDialog.newInstance(this, mErrorStringId, mErrorMessage);
|
||||||
fm.openTransaction()
|
fm.beginTransaction()
|
||||||
.add(errorDialog, ErrorDialog.TAG)
|
.add(errorDialog, ErrorDialog.TAG)
|
||||||
.commit();
|
.commit();
|
||||||
}
|
}
|
||||||
@ -265,7 +265,7 @@ public class AccountCheckSettingsFragment extends Fragment {
|
|||||||
|
|
||||||
if (mCheckingDialog == null) {
|
if (mCheckingDialog == null) {
|
||||||
mCheckingDialog = CheckingDialog.newInstance(this, mState);
|
mCheckingDialog = CheckingDialog.newInstance(this, mState);
|
||||||
fm.openTransaction()
|
fm.beginTransaction()
|
||||||
.add(mCheckingDialog, CheckingDialog.TAG)
|
.add(mCheckingDialog, CheckingDialog.TAG)
|
||||||
.commit();
|
.commit();
|
||||||
} else {
|
} else {
|
||||||
|
@ -546,7 +546,7 @@ public class AccountSettingsFragment extends PreferenceFragment {
|
|||||||
public boolean onPreferenceClick(Preference preference) {
|
public boolean onPreferenceClick(Preference preference) {
|
||||||
DeleteAccountFragment dialogFragment = DeleteAccountFragment.newInstance(
|
DeleteAccountFragment dialogFragment = DeleteAccountFragment.newInstance(
|
||||||
mAccount, AccountSettingsFragment.this);
|
mAccount, AccountSettingsFragment.this);
|
||||||
FragmentTransaction ft = getFragmentManager().openTransaction();
|
FragmentTransaction ft = getFragmentManager().beginTransaction();
|
||||||
ft.addToBackStack(null);
|
ft.addToBackStack(null);
|
||||||
dialogFragment.show(ft, DeleteAccountFragment.TAG);
|
dialogFragment.show(ft, DeleteAccountFragment.TAG);
|
||||||
return true;
|
return true;
|
||||||
|
@ -484,7 +484,7 @@ public class AccountSetupBasics extends AccountSetupActivity
|
|||||||
AccountCheckSettingsFragment checkerFragment =
|
AccountCheckSettingsFragment checkerFragment =
|
||||||
AccountCheckSettingsFragment.newInstance(
|
AccountCheckSettingsFragment.newInstance(
|
||||||
SetupData.CHECK_INCOMING | SetupData.CHECK_OUTGOING, null);
|
SetupData.CHECK_INCOMING | SetupData.CHECK_OUTGOING, null);
|
||||||
FragmentTransaction transaction = getFragmentManager().openTransaction();
|
FragmentTransaction transaction = getFragmentManager().beginTransaction();
|
||||||
transaction.add(checkerFragment, AccountCheckSettingsFragment.TAG);
|
transaction.add(checkerFragment, AccountCheckSettingsFragment.TAG);
|
||||||
transaction.addToBackStack("back");
|
transaction.addToBackStack("back");
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
|
@ -182,7 +182,7 @@ public class AccountSetupExchange extends AccountSetupActivity
|
|||||||
public void onProceedNext(int checkMode, AccountServerBaseFragment target) {
|
public void onProceedNext(int checkMode, AccountServerBaseFragment target) {
|
||||||
AccountCheckSettingsFragment checkerFragment =
|
AccountCheckSettingsFragment checkerFragment =
|
||||||
AccountCheckSettingsFragment.newInstance(checkMode, target);
|
AccountCheckSettingsFragment.newInstance(checkMode, target);
|
||||||
FragmentTransaction transaction = getFragmentManager().openTransaction();
|
FragmentTransaction transaction = getFragmentManager().beginTransaction();
|
||||||
transaction.add(checkerFragment, AccountCheckSettingsFragment.TAG);
|
transaction.add(checkerFragment, AccountCheckSettingsFragment.TAG);
|
||||||
transaction.addToBackStack("back");
|
transaction.addToBackStack("back");
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
|
@ -87,7 +87,7 @@ public class AccountSetupIncoming extends AccountSetupActivity
|
|||||||
public void onProceedNext(int checkMode, AccountServerBaseFragment target) {
|
public void onProceedNext(int checkMode, AccountServerBaseFragment target) {
|
||||||
AccountCheckSettingsFragment checkerFragment =
|
AccountCheckSettingsFragment checkerFragment =
|
||||||
AccountCheckSettingsFragment.newInstance(checkMode, target);
|
AccountCheckSettingsFragment.newInstance(checkMode, target);
|
||||||
FragmentTransaction transaction = getFragmentManager().openTransaction();
|
FragmentTransaction transaction = getFragmentManager().beginTransaction();
|
||||||
transaction.add(checkerFragment, AccountCheckSettingsFragment.TAG);
|
transaction.add(checkerFragment, AccountCheckSettingsFragment.TAG);
|
||||||
transaction.addToBackStack("back");
|
transaction.addToBackStack("back");
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
|
@ -87,7 +87,7 @@ public class AccountSetupOutgoing extends Activity
|
|||||||
public void onProceedNext(int checkMode, AccountServerBaseFragment target) {
|
public void onProceedNext(int checkMode, AccountServerBaseFragment target) {
|
||||||
AccountCheckSettingsFragment checkerFragment =
|
AccountCheckSettingsFragment checkerFragment =
|
||||||
AccountCheckSettingsFragment.newInstance(checkMode, target);
|
AccountCheckSettingsFragment.newInstance(checkMode, target);
|
||||||
FragmentTransaction transaction = getFragmentManager().openTransaction();
|
FragmentTransaction transaction = getFragmentManager().beginTransaction();
|
||||||
transaction.add(checkerFragment, AccountCheckSettingsFragment.TAG);
|
transaction.add(checkerFragment, AccountCheckSettingsFragment.TAG);
|
||||||
transaction.addToBackStack("back");
|
transaction.addToBackStack("back");
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
|
@ -81,10 +81,10 @@ public class ThrottlingCursorLoader extends CursorLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCancelled(Cursor cursor) {
|
public void onCanceled(Cursor cursor) {
|
||||||
if (Throttle.DEBUG) debugLog("onCancelled");
|
if (Throttle.DEBUG) debugLog("onCancelled");
|
||||||
mThrottle.cancelScheduledCallback();
|
mThrottle.cancelScheduledCallback();
|
||||||
super.onCancelled(cursor);
|
super.onCanceled(cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user