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:
@@ -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
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user