Show "photos" in title

Signed-off-by: Joris Bodin <joris.bodin@infomaniak.com>
This commit is contained in:
Joris Bodin 2020-06-12 15:25:44 +02:00
parent 983a35517d
commit fa9804d742
No known key found for this signature in database
GPG key ID: 3144433DBB0C5A21
2 changed files with 5 additions and 0 deletions

View file

@ -439,6 +439,7 @@ public abstract class DrawerActivity extends ToolbarActivity
private void startPhotoSearch(MenuItem menuItem) { private void startPhotoSearch(MenuItem menuItem) {
SearchEvent searchEvent = new SearchEvent("image/%", SearchRemoteOperation.SearchType.PHOTO_SEARCH); SearchEvent searchEvent = new SearchEvent("image/%", SearchRemoteOperation.SearchType.PHOTO_SEARCH);
MainApp.showOnlyFilesOnDevice(false);
Intent intent = new Intent(getApplicationContext(), FileDisplayActivity.class); Intent intent = new Intent(getApplicationContext(), FileDisplayActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

View file

@ -1204,6 +1204,10 @@ public class FileDisplayActivity extends FileActivity
setDrawerMenuItemChecked(menuItemId); setDrawerMenuItemChecked(menuItemId);
} }
if (getListOfFilesFragment() instanceof PhotoFragment) {
updateActionBarTitleAndHomeButtonByString(getString(R.string.drawer_item_photos));
}
Log_OC.v(TAG, "onResume() end"); Log_OC.v(TAG, "onResume() end");
} }