diff --git a/docs-android/app/src/main/java/com/sismics/docs/activity/DocumentEditActivity.java b/docs-android/app/src/main/java/com/sismics/docs/activity/DocumentEditActivity.java index c15d04fc..7072bbbb 100644 --- a/docs-android/app/src/main/java/com/sismics/docs/activity/DocumentEditActivity.java +++ b/docs-android/app/src/main/java/com/sismics/docs/activity/DocumentEditActivity.java @@ -101,7 +101,7 @@ public class DocumentEditActivity extends AppCompatActivity { finish(); return; } - JSONArray tagArray = tags.optJSONArray("stats"); + JSONArray tagArray = tags.optJSONArray("tags"); List tagList = new ArrayList<>(); for (int i = 0; i < tagArray.length(); i++) { diff --git a/docs-android/app/src/main/java/com/sismics/docs/activity/DocumentViewActivity.java b/docs-android/app/src/main/java/com/sismics/docs/activity/DocumentViewActivity.java index ec38eae4..46a17f55 100644 --- a/docs-android/app/src/main/java/com/sismics/docs/activity/DocumentViewActivity.java +++ b/docs-android/app/src/main/java/com/sismics/docs/activity/DocumentViewActivity.java @@ -642,10 +642,10 @@ public class DocumentViewActivity extends AppCompatActivity { } // Action only available if the document is writable - findViewById(R.id.actionEditDocument).setVisibility(writable ? View.VISIBLE : View.INVISIBLE); - findViewById(R.id.actionUploadFile).setVisibility(writable ? View.VISIBLE : View.INVISIBLE); - findViewById(R.id.actionSharing).setVisibility(writable ? View.VISIBLE : View.INVISIBLE); - findViewById(R.id.actionDelete).setVisibility(writable ? View.VISIBLE : View.INVISIBLE); + findViewById(R.id.actionEditDocument).setVisibility(writable ? View.VISIBLE : View.GONE); + findViewById(R.id.actionUploadFile).setVisibility(writable ? View.VISIBLE : View.GONE); + findViewById(R.id.actionSharing).setVisibility(writable ? View.VISIBLE : View.GONE); + findViewById(R.id.actionDelete).setVisibility(writable ? View.VISIBLE : View.GONE); // ACLs ListView aclListView = (ListView) findViewById(R.id.aclListView); diff --git a/docs-android/app/src/main/java/com/sismics/docs/fragment/SearchFragment.java b/docs-android/app/src/main/java/com/sismics/docs/fragment/SearchFragment.java index a1e8cadb..cc55d3a5 100644 --- a/docs-android/app/src/main/java/com/sismics/docs/fragment/SearchFragment.java +++ b/docs-android/app/src/main/java/com/sismics/docs/fragment/SearchFragment.java @@ -73,7 +73,7 @@ public class SearchFragment extends DialogFragment { dialog.cancel(); return dialog; } - JSONArray tagArray = tags.optJSONArray("stats"); + JSONArray tagArray = tags.optJSONArray("tags"); List tagList = new ArrayList<>(); for (int i = 0; i < tagArray.length(); i++) { diff --git a/docs-android/app/src/main/res/layout/document_view_activity.xml b/docs-android/app/src/main/res/layout/document_view_activity.xml index 13c3e0f3..0068dceb 100644 --- a/docs-android/app/src/main/res/layout/document_view_activity.xml +++ b/docs-android/app/src/main/res/layout/document_view_activity.xml @@ -166,28 +166,6 @@ android:orientation="horizontal" style="?android:buttonBarStyle"> -