1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-02-03 05:27:44 +01:00

Pebble: remove "move to top" feature completely

This commit is contained in:
Andreas Shimokawa 2016-06-19 21:06:38 +02:00
parent 4b5969ef96
commit 24e840e03b
2 changed files with 0 additions and 9 deletions

View File

@ -277,9 +277,6 @@ public abstract class AbstractAppManagerFragment extends Fragment {
if (!selectedApp.isConfigurable()) { if (!selectedApp.isConfigurable()) {
menu.removeItem(R.id.appmanager_app_configure); menu.removeItem(R.id.appmanager_app_configure);
} }
if (!mGBDevice.getFirmwareVersion().startsWith("v3")) {
menu.removeItem(R.id.appmanager_app_move_to_top);
}
//menu.setHeaderTitle(selectedApp.getName()); //menu.setHeaderTitle(selectedApp.getName());
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
public boolean onMenuItemClick(MenuItem item) { public boolean onMenuItemClick(MenuItem item) {
@ -343,8 +340,6 @@ public abstract class AbstractAppManagerFragment extends Fragment {
startIntent.putExtra(GBDevice.EXTRA_DEVICE, mGBDevice); startIntent.putExtra(GBDevice.EXTRA_DEVICE, mGBDevice);
startActivity(startIntent); startActivity(startIntent);
return true; return true;
case R.id.appmanager_app_move_to_top:
return true;
default: default:
return super.onContextItemSelected(item); return super.onContextItemSelected(item);
} }

View File

@ -18,8 +18,4 @@
<item <item
android:id="@+id/appmanager_app_configure" android:id="@+id/appmanager_app_configure"
android:title="@string/app_configure"/> android:title="@string/app_configure"/>
<item
android:id="@+id/appmanager_app_move_to_top"
android:title="@string/app_move_to_top"/>
</menu> </menu>