Skip to content

Commit e862f40

Browse files
committed
docs: Note no-op reasons
1 parent a8a6937 commit e862f40

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergKitEditorFragment.java

+26
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,12 @@ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
254254

255255
@Override
256256
public void onRedoEnabled() {
257+
// Currently unsupported
257258
}
258259

259260
@Override
260261
public void onUndoEnabled() {
262+
// Currently unsupported
261263
}
262264

263265
@Override
@@ -272,6 +274,7 @@ public void onRedo() {
272274

273275
@Override
274276
public void setTitle(CharSequence title) {
277+
// Unused, no-op retained for the shared interface with Gutenberg
275278
}
276279

277280
@Override
@@ -285,6 +288,7 @@ public void setContent(CharSequence text) {
285288

286289
@Override
287290
public void updateContent(@Nullable CharSequence text) {
291+
// Unused, no-op retained for the shared interface with Gutenberg
288292
}
289293

290294
public void onToggleHtmlMode() {
@@ -423,28 +427,34 @@ public void appendMediaFiles(Map<String, MediaFile> mediaList) {
423427

424428
@Override
425429
public void appendGallery(MediaGallery mediaGallery) {
430+
// Unused, no-op retained for the shared interface with Gutenberg
426431
}
427432

428433
@Override
429434
public void setUrlForVideoPressId(final String videoId, final String videoUrl, final String posterUrl) {
435+
// Unused, no-op retained for the shared interface with Gutenberg
430436
}
431437

432438
@Override
433439
public boolean isUploadingMedia() {
440+
// Unused, no-op retained for the shared interface with Gutenberg
434441
return false;
435442
}
436443

437444
@Override
438445
public boolean hasFailedMediaUploads() {
446+
// Unused, no-op retained for the shared interface with Gutenberg
439447
return false;
440448
}
441449

442450
@Override
443451
public void removeAllFailedMediaUploads() {
452+
// Unused, no-op retained for the shared interface with Gutenberg
444453
}
445454

446455
@Override
447456
public void removeMedia(String mediaId) {
457+
// Unused, no-op retained for the shared interface with Gutenberg
448458
}
449459

450460
@Override
@@ -457,63 +467,79 @@ public void onDestroy() {
457467
}
458468

459469
@Override public void mediaSelectionCancelled() {
470+
// Unused, no-op retained for the shared interface with Gutenberg
460471
}
461472

462473
@Override
463474
public void onMediaUploadReattached(String localMediaId, float currentProgress) {
475+
// Unused, no-op retained for the shared interface with Gutenberg
464476
}
465477

466478
@Override
467479
public void onMediaUploadRetry(String localMediaId, MediaType mediaType) {
480+
// Unused, no-op retained for the shared interface with Gutenberg
468481
}
469482

470483
@Override
471484
public void onMediaUploadSucceeded(final String localMediaId, final MediaFile mediaFile) {
485+
// Unused, no-op retained for the shared interface with Gutenberg
472486
}
473487

474488
@Override
475489
public void onMediaUploadProgress(final String localMediaId, final float progress) {
490+
// Unused, no-op retained for the shared interface with Gutenberg
476491
}
477492

478493
@Override
479494
public void onMediaUploadFailed(final String localMediaId) {
495+
// Unused, no-op retained for the shared interface with Gutenberg
480496
}
481497

482498
@Override
483499
public void onMediaUploadPaused(final String localMediaId) {
500+
// Unused, no-op retained for the shared interface with Gutenberg
484501
}
485502

486503
@Override
487504
public void onGalleryMediaUploadSucceeded(final long galleryId, long remoteMediaId, int remaining) {
505+
// Unused, no-op retained for the shared interface with Gutenberg
488506
}
489507

490508
@Override
491509
public void onEditorThemeUpdated(Bundle editorTheme) {
510+
// Unused, no-op retained for the shared interface with Gutenberg
492511
}
493512

494513
@Override
495514
public void showNotice(String message) {
515+
// Unused, no-op retained for the shared interface with Gutenberg
496516
}
497517

498518
@Override
499519
public void showEditorHelp() {
520+
// Unused, no-op retained for the shared interface with Gutenberg
500521
}
501522

502523
@Override public void onUndoPressed() {
524+
// Currently unsupported
503525
}
504526

505527
@Override public void onRedoPressed() {
528+
// Currently unsupported
506529
}
507530

508531
@Override
509532
public void onGutenbergDialogPositiveClicked(@NonNull String instanceTag, int mediaId) {
533+
// Unused, no-op retained for the shared interface with Gutenberg
510534
}
511535

512536
@Override
513537
public void onGutenbergDialogNegativeClicked(@NonNull String instanceTag) {
538+
// Unused, no-op retained for the shared interface with Gutenberg
514539
}
515540

516541
@Override
517542
public void onConnectionStatusChange(boolean isConnected) {
543+
// Unused, no-op retained for the shared interface with Gutenberg
518544
}
519545
}

0 commit comments

Comments
 (0)