Simple Notepad Application for Android OS
Révision | e74937f05f90ddb71a97117b99765bb6f0dd030c (tree) |
---|---|
l'heure | 2019-02-26 11:39:16 |
Auteur | Masahiko, SAWAI <say@user...> |
Commiter | Masahiko, SAWAI |
Fixed a lock title dialog bug.
@@ -502,13 +502,15 @@ public class EditNoteFragment extends Fragment | ||
502 | 502 | { |
503 | 503 | case R.id.note_title_lock_button: |
504 | 504 | Log.d(LOG_TAG, "note_title_lock_button is clicked"); |
505 | - LockTitleDialogFragment lockTitleDialogFragment = new LockTitleDialogFragment(); | |
506 | - lockTitleDialogFragment.show(getFragmentManager(), FT_TITLE_LOCK); | |
505 | + //LockTitleDialogFragment lockTitleDialogFragment = new LockTitleDialogFragment(); | |
506 | + //lockTitleDialogFragment.show(getFragmentManager(), FT_TITLE_LOCK); | |
507 | + setNoteTitleLocked(true); | |
507 | 508 | break; |
508 | 509 | case R.id.note_title_unlock_button: |
509 | 510 | Log.d(LOG_TAG, "note_title_unlock_button is clicked"); |
510 | - UnlockTitleDialogFragment unlockTitleDialogFragment = new UnlockTitleDialogFragment(); | |
511 | - unlockTitleDialogFragment.show(getFragmentManager(), FT_TITLE_UNLOCK); | |
511 | + //UnlockTitleDialogFragment unlockTitleDialogFragment = new UnlockTitleDialogFragment(); | |
512 | + //unlockTitleDialogFragment.show(getFragmentManager(), FT_TITLE_UNLOCK); | |
513 | + setNoteTitleLocked(false); | |
512 | 514 | break; |
513 | 515 | default: |
514 | 516 | throw new AssertionError(); |
@@ -740,6 +742,9 @@ public class EditNoteFragment extends Fragment | ||
740 | 742 | } |
741 | 743 | } |
742 | 744 | |
745 | + | |
746 | + /* | |
747 | + | |
743 | 748 | class LockTitleDialogFragment extends DialogFragment |
744 | 749 | implements DialogInterface.OnClickListener |
745 | 750 | { |
@@ -789,4 +794,5 @@ public class EditNoteFragment extends Fragment | ||
789 | 794 | } |
790 | 795 | } |
791 | 796 | } |
797 | + */ | |
792 | 798 | } |