Skip to content

Commit

Permalink
Bottom toolbar hide text on help screen fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jb1998 committed Mar 24, 2018
1 parent f408e81 commit 50eb799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
import static org.kiwix.kiwixmobile.utils.Constants.EXTRA_SEARCH;
import static org.kiwix.kiwixmobile.utils.Constants.EXTRA_ZIM_FILE;
import static org.kiwix.kiwixmobile.utils.Constants.EXTRA_ZIM_FILE_2;
import static org.kiwix.kiwixmobile.utils.Constants.PREF_BOTTOM_TOOLBAR;
import static org.kiwix.kiwixmobile.utils.Constants.PREF_KIWIX_MOBILE;
import static org.kiwix.kiwixmobile.utils.Constants.REQUEST_FILE_SEARCH;
import static org.kiwix.kiwixmobile.utils.Constants.REQUEST_FILE_SELECT;
Expand Down Expand Up @@ -1214,9 +1215,9 @@ private void popBookmarkSnackbar(boolean isBookmark) {
@Override
public void onResume() {
super.onResume();
SharedPreferences settings = getSharedPreferences(PREF_KIWIX_MOBILE, 0);
CardView cardView=(CardView)findViewById(R.id.feedback_card);

if (settings.getBoolean(PREF_BOTTOM_TOOLBAR, false)) {
if (settings.getBoolean(PREF_BOTTOM_TOOLBAR, false)) {
if(cardView!=null) {
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
params.setMargins(0, 0, 0, 56);
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:id="@+id/feedback_card"
android:paddingLeft="@dimen/help_cardview_horizontal_padding"
android:paddingRight="@dimen/help_cardview_horizontal_padding"
card_view:cardCornerRadius="@dimen/help_cardview_card_corner_radius"
Expand Down

0 comments on commit 50eb799

Please sign in to comment.