Skip to content

Commit 93da8e0

Browse files
committed
Remove remnants of Audio Recording button, closes #2569, by @gsantner
1 parent 8de08fc commit 93da8e0

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ Files are stored locally in a user selectable folder, defaulting to the internal
169169
In user-generated content data can be loaded from the internet.
170170
* INSTALL_SHORTCUT
171171
Install a shortcut to launchers to open a file/folder in Markor.
172-
* RECORD_AUDIO
173-
Attach voice notes to the text. The permission is only used after click on the "attach audio" button, at the audio record dialog. Audio recording is always started and stopped manually by you (button press).
174172

175173
## License
176174
The code of the app is licensed Apache 2.0.

app/src/main/java/net/gsantner/markor/frontend/AttachLinkOrFileDialog.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ public static void showInsertImageOrLinkDialog(
101101
final Button buttonPictureGallery = view.findViewById(R.id.ui__select_path_dialog__gallery_picture);
102102
final Button buttonPictureCamera = view.findViewById(R.id.ui__select_path_dialog__camera_picture);
103103
final Button buttonPictureEdit = view.findViewById(R.id.ui__select_path_dialog__edit_picture);
104-
final Button buttonAudioRecord = view.findViewById(R.id.ui__select_path_dialog__record_audio);
105104

106105
builder.setCancelable(true);
107106
builder.setNegativeButton(android.R.string.cancel, (di, b) -> di.dismiss());
@@ -142,7 +141,6 @@ public static void showInsertImageOrLinkDialog(
142141
okType = InsertType.IMAGE_DIALOG;
143142
} else if (action == AUDIO_ACTION) {
144143
dialog.setTitle(R.string.audio);
145-
buttonAudioRecord.setVisibility(View.VISIBLE);
146144
browseType = InsertType.AUDIO_BROWSE;
147145
okType = InsertType.AUDIO_DIALOG;
148146
} else {
@@ -158,7 +156,6 @@ public static void showInsertImageOrLinkDialog(
158156
buttonSearch.setOnClickListener(v -> _insertItem.callback(InsertType.LINK_SEARCH));
159157
buttonPictureCamera.setOnClickListener(b -> _insertItem.callback(InsertType.IMAGE_CAMERA));
160158
buttonPictureGallery.setOnClickListener(v -> _insertItem.callback(InsertType.IMAGE_GALLERY));
161-
buttonAudioRecord.setOnClickListener(v -> _insertItem.callback(InsertType.AUDIO_RECORDING));
162159
buttonPictureEdit.setOnClickListener(v -> _insertItem.callback(InsertType.IMAGE_EDIT));
163160

164161
dialog.show();

app/src/main/res/layout/select_path_dialog.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,6 @@
8585
android:visibility="gone"
8686
android:text="@string/edit_picture" />
8787

88-
<Button
89-
android:id="@+id/ui__select_path_dialog__record_audio"
90-
android:layout_width="match_parent"
91-
android:layout_height="wrap_content"
92-
android:drawableStart="@drawable/ic_keyboard_voice_black_24dp"
93-
android:drawableLeft="@drawable/ic_keyboard_voice_black_24dp"
94-
android:visibility="gone"
95-
android:text="@string/record_audio" />
9688
</LinearLayout>
9789

9890
</ScrollView>

0 commit comments

Comments
 (0)