Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Removing unwanted buttons #213

Merged
merged 1 commit into from
Jan 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,6 @@ public void onClick(View view) {
}
}
});
setupButton(R.id.book_info_button_edit, "editInfo", new View.OnClickListener() {
public void onClick(View view) {
startActivityForResult(
new Intent(getApplicationContext(), EditBookInfoActivity.class)
.putExtra(CURRENT_BOOK_PATH_KEY, myFile.getPath()),
1
);
}
});
setupButton(R.id.book_info_button_reload, "reloadInfo", new View.OnClickListener() {
public void onClick(View view) {
if (book != null) {
book.reloadInfoFromFile();
setupBookInfo(book);
myDontReloadBook = false ;
}
}
});
setupButton(R.id.book_info_button_remove, "removeBook", new View.OnClickListener() {
public void onClick(View view) {
if (book != null) {
Expand Down Expand Up @@ -364,10 +346,6 @@ private String formatDate(long date) {
@Override
public void onWindowFocusChanged (boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if (accessibilityManager.isEnabled()) {
findButton(R.id.book_info_button_edit).setVisibility(View.GONE);
findButton(R.id.book_info_button_reload).setVisibility(View.GONE);
}
(findViewById(R.id.book_title)).requestFocus();
}

Expand Down
8 changes: 1 addition & 7 deletions FBReader/src/main/res/layout/book_info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,9 @@
android:layout_width="0dip"
android:layout_weight="1"
android:maxLines="2"
android:visibility="invisible"
android:layout_height="wrap_content"
/>
<Button
android:id="@+id/book_info_button_reload"
android:layout_width="0dip"
android:layout_weight="1"
android:maxLines="2"
android:layout_height="wrap_content"
/>
<Button
android:id="@+id/book_info_button_remove"
android:layout_width="0dip"
Expand Down