blob: 945f7d677de3a3848a67728fed00f0c1d526a8c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package cgeo.geocaching.apps;
import android.view.MenuItem;
public abstract class AbstractAppFactory {
protected static App getAppFromMenuItem(MenuItem item, final App[] availableApps) {
final int id = item.getItemId();
for (App app : availableApps) {
if (app.getId() == id) {
return app;
}
}
return null;
}
}
|