Some fixes with dialogs
This commit is contained in:
parent
9c2156385b
commit
26a3633a81
|
@ -184,7 +184,7 @@ public class AccountReportActivity extends BaseActivity implements OnAdminAction
|
|||
builderInner = new AlertDialog.Builder(AccountReportActivity.this, R.style.AppThemeDark);
|
||||
builderInner.setTitle(R.string.reconnect_account);
|
||||
builderInner.setMessage(R.string.reconnect_account_message);
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -483,7 +483,7 @@ public class EditProfileActivity extends BaseActivity implements OnRetrieveAccou
|
|||
new UpdateCredentialAsyncTask(getApplicationContext(), newCustomFields, profile_username, profile_note, profile_picture, avatarName, header_picture, headerName, profile_privacy, sensitive, EditProfileActivity.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -214,7 +214,7 @@ public class ListActivity extends BaseActivity implements OnListActionInterface
|
|||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -165,7 +165,7 @@ public class MutedInstanceActivity extends BaseActivity implements OnRetrieveDom
|
|||
}
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -393,7 +393,7 @@ public class OwnerNotificationActivity extends BaseActivity implements OnRetriev
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -419,7 +419,7 @@ public class OwnerStatusActivity extends BaseActivity implements OnRetrieveFeeds
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -443,7 +443,7 @@ public class PeertubeActivity extends BaseActivity implements OnRetrievePeertube
|
|||
LinearLayout.LayoutParams.WRAP_CONTENT);
|
||||
input.setLayoutParams(lp);
|
||||
builderInner.setView(input);
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -820,7 +820,7 @@ public class PeertubeActivity extends BaseActivity implements OnRetrievePeertube
|
|||
final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(PeertubeActivity.this, android.R.layout.select_dialog_item);
|
||||
for (String resolution : peertube.getResolution())
|
||||
arrayAdapter.add(resolution + "p");
|
||||
builderSingle.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -163,7 +163,7 @@ public class PeertubeEditUploadActivity extends BaseActivity implements OnRetrie
|
|||
}
|
||||
builderInner = new AlertDialog.Builder(PeertubeEditUploadActivity.this, style);
|
||||
builderInner.setMessage(getString(R.string.delete_video_confirmation));
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -461,14 +461,14 @@ public class PhotoEditorActivity extends BaseActivity implements OnPhotoEditorLi
|
|||
saveImage();
|
||||
}
|
||||
});
|
||||
builder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
|
||||
builder.setNeutralButton(R.string.discard, new DialogInterface.OnClickListener() {
|
||||
builder.setNegativeButton(R.string.discard, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
finish();
|
||||
|
|
|
@ -270,7 +270,7 @@ public class PixelfedComposeActivity extends BaseActivity implements UploadStatu
|
|||
finish();
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
@ -1259,7 +1259,7 @@ public class PixelfedComposeActivity extends BaseActivity implements UploadStatu
|
|||
if (currentVersion.compareTo(minVersion) == 1 || currentVersion.equals(minVersion)) {
|
||||
AlertDialog.Builder builderSingle = new AlertDialog.Builder(PixelfedComposeActivity.this, style);
|
||||
builderSingle.setTitle(getString(R.string.choose_schedule));
|
||||
builderSingle.setNeutralButton(R.string.device_schedule, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.device_schedule, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
deviceSchedule(time[0]);
|
||||
|
@ -1425,7 +1425,7 @@ public class PixelfedComposeActivity extends BaseActivity implements UploadStatu
|
|||
dialog.setTitle(R.string.toot_visibility_tilte);
|
||||
final String[] stringArray = getResources().getStringArray(R.array.toot_visibility);
|
||||
final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(PixelfedComposeActivity.this, android.R.layout.simple_list_item_1, stringArray);
|
||||
dialog.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialog.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int position) {
|
||||
dialog.dismiss();
|
||||
|
@ -1502,7 +1502,7 @@ public class PixelfedComposeActivity extends BaseActivity implements UploadStatu
|
|||
finish();
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -795,7 +795,7 @@ public class ShowAccountActivity extends BaseActivity implements OnPostActionInt
|
|||
AlertDialog.Builder unfollowConfirm = new AlertDialog.Builder(ShowAccountActivity.this, style);
|
||||
unfollowConfirm.setTitle(getString(R.string.unfollow_confirm));
|
||||
unfollowConfirm.setMessage(account.getAcct());
|
||||
unfollowConfirm.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
unfollowConfirm.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -845,7 +845,7 @@ public class ShowAccountActivity extends BaseActivity implements OnPostActionInt
|
|||
input.setText(userNote.getNote());
|
||||
input.setImeOptions(EditorInfo.IME_FLAG_NO_ENTER_ACTION);
|
||||
builderInner.setView(input);
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -1361,7 +1361,7 @@ public class ShowAccountActivity extends BaseActivity implements OnPostActionInt
|
|||
}
|
||||
AlertDialog.Builder builderSingle = new AlertDialog.Builder(ShowAccountActivity.this, style);
|
||||
builderSingle.setTitle(getString(R.string.action_lists_add_to));
|
||||
builderSingle.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -1425,7 +1425,7 @@ public class ShowAccountActivity extends BaseActivity implements OnPostActionInt
|
|||
input.setLayoutParams(lp);
|
||||
builderInner.setView(input);
|
||||
doActionAccount = API.StatusAction.REPORT;
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -1459,7 +1459,7 @@ public class ShowAccountActivity extends BaseActivity implements OnPostActionInt
|
|||
}
|
||||
input.setImeOptions(EditorInfo.IME_FLAG_NO_ENTER_ACTION);
|
||||
builderInner.setView(input);
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -1499,7 +1499,7 @@ public class ShowAccountActivity extends BaseActivity implements OnPostActionInt
|
|||
default:
|
||||
return true;
|
||||
}
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -351,7 +351,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
finish();
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
@ -1695,7 +1695,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
alert.setNeutralButton(R.string.accounts, new DialogInterface.OnClickListener() {
|
||||
alert.setNegativeButton(R.string.accounts, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int whichButton) {
|
||||
new RetrieveAccountsForReplyAsyncTask(getApplicationContext(), tootReply.getReblog() != null ? tootReply.getReblog() : tootReply, TootActivity.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
dialog.dismiss();
|
||||
|
@ -1832,7 +1832,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
transAlert.setNeutralButton(R.string.validate, new DialogInterface.OnClickListener() {
|
||||
transAlert.setNegativeButton(R.string.validate, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int whichButton) {
|
||||
TextView toot_trans = popup_trans.findViewById(R.id.toot_trans);
|
||||
TextView cw_trans = popup_trans.findViewById(R.id.cw_trans);
|
||||
|
@ -1868,7 +1868,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
int paddingPixel = 15;
|
||||
float density = getResources().getDisplayMetrics().density;
|
||||
int paddingDp = (int) (paddingPixel * density);
|
||||
builder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
|
@ -1950,7 +1950,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
}
|
||||
});
|
||||
builderSingle.setView(dialogView);
|
||||
builderSingle.setNeutralButton(R.string.validate, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.validate, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -2004,7 +2004,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
ids[i] = draft.getId();
|
||||
i++;
|
||||
}
|
||||
builderSingle.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -2024,7 +2024,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogConfirm, int which) {
|
||||
dialogConfirm.dismiss();
|
||||
|
@ -2125,7 +2125,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
if (currentVersion.compareTo(minVersion) == 1 || currentVersion.equals(minVersion)) {
|
||||
AlertDialog.Builder builderSingle = new AlertDialog.Builder(TootActivity.this, style);
|
||||
builderSingle.setTitle(getString(R.string.choose_schedule));
|
||||
builderSingle.setNeutralButton(R.string.device_schedule, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.device_schedule, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
deviceSchedule(time[0]);
|
||||
|
@ -2231,7 +2231,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
}
|
||||
}
|
||||
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
toot_it.setEnabled(true);
|
||||
|
@ -2451,7 +2451,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
}
|
||||
});
|
||||
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -2486,7 +2486,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
AlertDialog.Builder dialog = new AlertDialog.Builder(TootActivity.this, style);
|
||||
|
||||
dialog.setMessage(R.string.toot_delete_media);
|
||||
dialog.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialog.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -2535,7 +2535,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
dialog.setTitle(R.string.toot_visibility_tilte);
|
||||
final String[] stringArray = getResources().getStringArray(R.array.toot_visibility);
|
||||
final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(TootActivity.this, android.R.layout.simple_list_item_1, stringArray);
|
||||
dialog.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialog.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int position) {
|
||||
dialog.dismiss();
|
||||
|
@ -2612,7 +2612,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
finish();
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
@ -3792,7 +3792,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
|
||||
|
||||
}
|
||||
alertPoll.setNeutralButton(R.string.delete, new DialogInterface.OnClickListener() {
|
||||
alertPoll.setNegativeButton(R.string.delete, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int whichButton) {
|
||||
if (poll != null)
|
||||
poll = null;
|
||||
|
@ -3960,7 +3960,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
final AlertDialog.Builder builderSingle = new AlertDialog.Builder(TootActivity.this, style);
|
||||
AccountsReplyAdapter accountsReplyAdapter = new AccountsReplyAdapter(new WeakReference<>(TootActivity.this), accounts, checkedValues);
|
||||
builderSingle.setTitle(getString(R.string.select_accounts)).setAdapter(accountsReplyAdapter, null);
|
||||
builderSingle.setNeutralButton(R.string.validate, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.validate, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -261,7 +261,7 @@ public class WebviewActivity extends BaseActivity {
|
|||
AlertDialog.Builder builder = new AlertDialog.Builder(WebviewActivity.this, style);
|
||||
builder.setTitle(R.string.list_of_blocked_domains);
|
||||
|
||||
builder.setNeutralButton(R.string.close, new DialogInterface.OnClickListener() {
|
||||
builder.setNegativeButton(R.string.close, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -236,7 +236,7 @@ public class AccountsListAdapter extends RecyclerView.Adapter implements OnPostA
|
|||
AlertDialog.Builder unfollowConfirm = new AlertDialog.Builder(context, style);
|
||||
unfollowConfirm.setTitle(context.getString(R.string.unfollow_confirm));
|
||||
unfollowConfirm.setMessage(account.getAcct());
|
||||
unfollowConfirm.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
unfollowConfirm.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -109,7 +109,7 @@ public class DomainsListAdapter extends RecyclerView.Adapter implements OnRetrie
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -163,7 +163,7 @@ public class DraftsListAdapter extends BaseAdapter {
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -217,7 +217,7 @@ public class FilterAdapter extends BaseAdapter implements OnFilterActionInterfac
|
|||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
@ -259,7 +259,7 @@ public class FilterAdapter extends BaseAdapter implements OnFilterActionInterfac
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -1028,7 +1028,7 @@ public class NotificationsListAdapter extends RecyclerView.Adapter implements On
|
|||
input.setLayoutParams(lp);
|
||||
builderInner.setView(input);
|
||||
}
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -1175,7 +1175,7 @@ public class NotificationsListAdapter extends RecyclerView.Adapter implements On
|
|||
new PostNotificationsAsyncTask(context, notification.getId(), NotificationsListAdapter.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
dialog.dismiss();
|
||||
}
|
||||
}).setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
}).setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -942,7 +942,7 @@ public class PixelfedListAdapter extends RecyclerView.Adapter implements OnPostA
|
|||
input.setLayoutParams(lp);
|
||||
builderInner.setView(input);
|
||||
}
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -152,7 +152,7 @@ public class PlaylistAdapter extends BaseAdapter implements OnPlaylistActionInte
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -226,7 +226,7 @@ public class ScheduledTootsListAdapter extends BaseAdapter implements OnPostActi
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -149,7 +149,7 @@ public class SearchTootsListAdapter extends BaseAdapter {
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -163,7 +163,7 @@ public class SliderAdapter extends SliderViewAdapter<SliderAdapter.SliderAdapter
|
|||
}
|
||||
});
|
||||
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -208,7 +208,7 @@ public class SliderAdapter extends SliderViewAdapter<SliderAdapter.SliderAdapter
|
|||
AlertDialog.Builder dialog = new AlertDialog.Builder(contextWeakReference.get(), style);
|
||||
|
||||
dialog.setMessage(R.string.toot_delete_media);
|
||||
dialog.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialog.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -1195,7 +1195,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
LinearLayout.LayoutParams.WRAP_CONTENT);
|
||||
input.setLayoutParams(lp);
|
||||
builderInner.setView(input);
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -1234,7 +1234,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
builderInner = new AlertDialog.Builder(context, style);
|
||||
builderInner.setTitle(R.string.delete_comment);
|
||||
builderInner.setMessage(R.string.delete_comment_confirm);
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -1270,7 +1270,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
int paddingPixel = 15;
|
||||
float density = context.getResources().getDisplayMetrics().density;
|
||||
int paddingDp = (int) (paddingPixel * density);
|
||||
builder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
|
@ -2480,7 +2480,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
dialog.setTitle(R.string.toot_visibility_tilte);
|
||||
final String[] stringArray = context.getResources().getStringArray(R.array.toot_visibility);
|
||||
final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(context, android.R.layout.simple_list_item_1, stringArray);
|
||||
dialog.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialog.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int position) {
|
||||
dialog.dismiss();
|
||||
|
@ -2898,7 +2898,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
input.setLayoutParams(lp);
|
||||
builderInner.setView(input);
|
||||
}
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -3299,7 +3299,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
input.setLayoutParams(lp);
|
||||
builderInner.setView(input);
|
||||
}
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -4128,7 +4128,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
}
|
||||
}
|
||||
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -63,7 +63,7 @@ public class ColorSettingsFragment extends PreferenceFragmentCompat {
|
|||
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -1601,7 +1601,7 @@ public class ContentSettingsFragment extends Fragment implements OnRetrieveRemot
|
|||
dialog.setTitle(R.string.toot_visibility_tilte);
|
||||
final String[] stringArray = getResources().getStringArray(R.array.toot_visibility);
|
||||
final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(context, android.R.layout.simple_list_item_1, stringArray);
|
||||
dialog.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialog.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int position) {
|
||||
dialog.dismiss();
|
||||
|
@ -2409,7 +2409,7 @@ public class ContentSettingsFragment extends Fragment implements OnRetrieveRemot
|
|||
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context, style);
|
||||
View icon_selector = inflater.inflate(R.layout.dialog_icon_selector, null);
|
||||
dialogBuilder.setView(icon_selector);
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -215,7 +215,7 @@ public class DisplayAdminReportsFragment extends Fragment implements OnAdminActi
|
|||
builderInner = new AlertDialog.Builder(context, R.style.AppThemeDark);
|
||||
builderInner.setTitle(R.string.reconnect_account);
|
||||
builderInner.setMessage(R.string.reconnect_account_message);
|
||||
builderInner.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderInner.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -148,7 +148,7 @@ public class DisplayBookmarksFragment extends Fragment implements OnRetrieveFeed
|
|||
dialogConfirm.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogConfirm, int which) {
|
||||
dialogConfirm.dismiss();
|
||||
|
|
|
@ -147,7 +147,7 @@ public class DisplayBookmarksPixelfedFragment extends Fragment implements OnRetr
|
|||
dialogConfirm.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogConfirm, int which) {
|
||||
dialogConfirm.dismiss();
|
||||
|
|
|
@ -124,7 +124,7 @@ public class DisplayDraftsFragment extends Fragment {
|
|||
dialogConfirm.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogConfirm, int which) {
|
||||
dialogConfirm.dismiss();
|
||||
|
|
|
@ -150,7 +150,7 @@ public class DisplayFavoritesPeertubeFragment extends Fragment implements OnRetr
|
|||
dialogConfirm.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogConfirm, int which) {
|
||||
dialogConfirm.dismiss();
|
||||
|
|
|
@ -189,7 +189,7 @@ public class DisplayFiltersFragment extends Fragment implements OnFilterActionIn
|
|||
add_new.setEnabled(false);
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -125,7 +125,7 @@ public class DisplayListsFragment extends Fragment implements OnListActionInterf
|
|||
add_new.setEnabled(false);
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -194,7 +194,7 @@ public class DisplayMutedInstanceFragment extends Fragment implements OnRetrieve
|
|||
}
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -264,7 +264,7 @@ public class DisplayPlaylistsFragment extends Fragment implements OnPlaylistActi
|
|||
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -226,7 +226,7 @@ public class CrossActions {
|
|||
accountArray[i] = account;
|
||||
i++;
|
||||
}
|
||||
builderSingle.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -509,7 +509,7 @@ public class CrossActions {
|
|||
accountArray[i] = account;
|
||||
i++;
|
||||
}
|
||||
builderSingle.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -596,7 +596,7 @@ public class CrossActions {
|
|||
accountArray[i] = account;
|
||||
i++;
|
||||
}
|
||||
builderSingle.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -753,7 +753,7 @@ public class CrossActions {
|
|||
accountArray[i] = account;
|
||||
i++;
|
||||
}
|
||||
builderSingle.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
builderSingle.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -845,7 +845,7 @@ public class CrossActions {
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
@ -920,7 +920,7 @@ public class CrossActions {
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -1104,7 +1104,7 @@ public class Helper {
|
|||
}
|
||||
|
||||
})
|
||||
.setNeutralButton(context.getString(R.string.cancel), new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(context.getString(R.string.cancel), new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.cancel();
|
||||
}
|
||||
|
@ -1578,7 +1578,7 @@ public class Helper {
|
|||
item.setVisible(false);
|
||||
}
|
||||
})
|
||||
.setNeutralButton(android.R.string.no, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
// do nothing
|
||||
}
|
||||
|
@ -4306,7 +4306,7 @@ public class Helper {
|
|||
dialog.dismiss();
|
||||
}
|
||||
})
|
||||
.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
|
@ -4718,7 +4718,7 @@ public class Helper {
|
|||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
@ -4800,7 +4800,7 @@ public class Helper {
|
|||
dialog.dismiss();
|
||||
}
|
||||
});
|
||||
dialogBuilder.setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
dialog.dismiss();
|
||||
|
|
|
@ -105,6 +105,7 @@
|
|||
<item name="android:windowIsTranslucent">true</item>
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
<item name="textColor">@color/black</item>
|
||||
<item name="android:textColor">@color/black</item>
|
||||
</style>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ buildscript {
|
|||
google()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.5.1'
|
||||
classpath 'com.android.tools.build:gradle:3.5.2'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
Loading…
Reference in New Issue