fix shared view

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-08-22 09:33:36 +02:00
parent 903b38c18d
commit 179b14cb6b
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 15 additions and 5 deletions

View file

@ -446,8 +446,10 @@ public abstract class DrawerActivity extends ToolbarActivity
break;
case R.id.nav_favorites:
handleSearchEvents(new SearchEvent("", SearchRemoteOperation.SearchType.FAVORITE_SEARCH,
SearchEvent.UnsetType.NO_UNSET), menuItem.getItemId());
handleSearchEvents(new SearchEvent("",
SearchRemoteOperation.SearchType.FAVORITE_SEARCH,
SearchEvent.UnsetType.NO_UNSET),
menuItem.getItemId());
break;
case R.id.nav_photos:
startPhotoSearch(menuItem);
@ -496,9 +498,17 @@ public abstract class DrawerActivity extends ToolbarActivity
menuItem.setChecked(false);
UserInfoActivity.openAccountRemovalConfirmationDialog(getAccount(), getSupportFragmentManager(), true);
break;
case R.id.nav_shared:
handleSearchEvents(new SearchEvent("",
SearchRemoteOperation.SearchType.SHARED_SEARCH,
SearchEvent.UnsetType.UNSET_BOTTOM_NAV_BAR),
menuItem.getItemId());
break;
case R.id.nav_recently_modified:
handleSearchEvents(new SearchEvent("", SearchRemoteOperation.SearchType.RECENTLY_MODIFIED_SEARCH,
SearchEvent.UnsetType.UNSET_BOTTOM_NAV_BAR), menuItem.getItemId());
handleSearchEvents(new SearchEvent("",
SearchRemoteOperation.SearchType.RECENTLY_MODIFIED_SEARCH,
SearchEvent.UnsetType.UNSET_BOTTOM_NAV_BAR),
menuItem.getItemId());
break;
default:
if (menuItem.getItemId() >= MENU_ITEM_EXTERNAL_LINK &&

View file

@ -134,7 +134,7 @@ public class ExtendedListFragment extends Fragment implements
private EmptyRecyclerView mRecyclerView;
protected SearchView searchView;
private Handler handler = new Handler();
private Handler handler = new Handler(Looper.getMainLooper());
private float mScale = -1f;