layout touch up to kiwix search widget

This commit is contained in:
Elad Keyshawn 2016-09-11 18:11:54 +03:00
parent 6592afe8ec
commit e0677c75f4
2 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,9 @@
android:id="@+id/kiwix_search_widget_layout_id"
android:background="@drawable/search_widget_background"
android:padding="@dimen/widget_margin"
android:gravity="center_vertical">
android:gravity="center_vertical"
android:layout_marginRight="1dp"
android:layout_marginLeft="1dp">
<ImageView
android:layout_width="wrap_content"

View File

@ -1175,6 +1175,8 @@ public class KiwixMobileActivity extends AppCompatActivity {
}
}
// TODO: change saving bookbark by zim name not id
private void saveBookmark(String articleUrl, String articleTitle) {
bookmarksDao.saveBookmark(articleUrl, articleTitle, ZimContentProvider.getId());
refreshBookmarks();