Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Donskoy <donskdmitry@mail.ru>2018-10-01 14:39:16 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2018-10-01 16:44:18 +0300
commit6509024eb817c3bdc822df55120249089e1d531d (patch)
treeb3c9fee8c6360b74b6e1e64b0161e0d6d23cc2d4 /android/src/com/mapswithme/maps/editor
parentc0be2a972d5847aaf1c8445d5922f55e1cb4a4eb (diff)
[android] Upgraded bottom sheet lib, supported changed interfaces
Diffstat (limited to 'android/src/com/mapswithme/maps/editor')
-rw-r--r--android/src/com/mapswithme/maps/editor/ProfileFragment.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/android/src/com/mapswithme/maps/editor/ProfileFragment.java b/android/src/com/mapswithme/maps/editor/ProfileFragment.java
index 779d412d76..4f340b8f90 100644
--- a/android/src/com/mapswithme/maps/editor/ProfileFragment.java
+++ b/android/src/com/mapswithme/maps/editor/ProfileFragment.java
@@ -17,6 +17,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
+import com.cocosw.bottomsheet.BottomSheet;
import com.mapswithme.maps.R;
import com.mapswithme.maps.editor.data.UserStats;
import com.mapswithme.util.BottomSheetHelper;
@@ -179,7 +180,7 @@ public class ProfileFragment extends AuthFragment implements View.OnClickListene
for (MenuItem item: items)
bs.sheet(item.ordinal(), item.icon, item.title);
- bs.listener(new android.view.MenuItem.OnMenuItemClickListener()
+ BottomSheet bottomSheet = bs.listener(new android.view.MenuItem.OnMenuItemClickListener()
{
@Override
public boolean onMenuItemClick(android.view.MenuItem item)
@@ -187,6 +188,8 @@ public class ProfileFragment extends AuthFragment implements View.OnClickListene
MenuItem.values()[item.getItemId()].invoke(ProfileFragment.this);
return false;
}
- }).tint().show();
+ }).build();
+ BottomSheetHelper.tint(bottomSheet);
+ bottomSheet.show();
}
}