forked from upstream-mirrors/OpenTracks
merge heads
This commit is contained in:
@@ -24,6 +24,7 @@ import android.bluetooth.BluetoothDevice;
|
||||
import android.bluetooth.BluetoothSocket;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.view.MenuItem;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -110,4 +111,31 @@ public interface ApiAdapter {
|
||||
*/
|
||||
public void showActionBar(Activity activity);
|
||||
|
||||
/**
|
||||
* Configures the search widget.
|
||||
*
|
||||
* Due to changes in API level 11.
|
||||
*
|
||||
* @param activity the activity
|
||||
* @param menuItem the search menu item
|
||||
*/
|
||||
public void configureSearchWidget(Activity activity, MenuItem menuItem);
|
||||
|
||||
/**
|
||||
* Handles the search menu selection. Returns true if handled.
|
||||
*
|
||||
* Due to changes in API level 11.
|
||||
*
|
||||
* @param activity the activity
|
||||
*/
|
||||
public boolean handleSearchMenuSelection(Activity activity);
|
||||
|
||||
/**
|
||||
* Handles the search key press. Returns true if handled.
|
||||
*
|
||||
* Due to changes in API level 14.
|
||||
*
|
||||
* @param menu the search menu
|
||||
*/
|
||||
public boolean handleSearchKey(MenuItem menu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user