1
0
mirror of https://github.com/sismics/docs.git synced 2026-01-01 02:49:35 +00:00

Android: show all documents from drawer

This commit is contained in:
jendib
2014-11-23 22:10:24 +01:00
parent 6a9a166670
commit 407564f28c
6 changed files with 75 additions and 9 deletions

View File

@@ -20,10 +20,8 @@ public class MainApplication extends Application {
JSONObject json = PreferenceUtil.getCachedJson(getApplicationContext(), PreferenceUtil.PREF_CACHED_USER_INFO_JSON);
ApplicationContext.getInstance().setUserInfo(getApplicationContext(), json);
// TODO Tags in drawer & search on select
// TODO Sharing
// TODO Error feedback
// TODO Printing
// TODO Error feedback (all REST request, even login)
// TODO Fullscreen preview
// TODO Caching preferences

View File

@@ -100,6 +100,19 @@ public class MainActivity extends ActionBarActivity {
}
});
// Click on All documents
View allDocumentsLayout = findViewById(R.id.allDocumentsLayout);
allDocumentsLayout.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
SearchView searchView = (SearchView) searchItem.getActionView();
searchView.setQuery(null, true);
searchView.setIconified(true);
drawerLayout.closeDrawers();
}
});
handleIntent(getIntent());
}