forked from upstream-mirrors/OpenTracks
Remove choose activity type dialog beore starting a new one. Remove clear button next to text edit for api level < 11
This commit is contained in:
@@ -178,6 +178,11 @@ public class Api11Adapter extends Api10Adapter {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean showEditTextClearButton() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTabBackground(TabWidget tabWidget) {
|
||||
for (int i = 0; i < tabWidget.getChildCount(); i++) {
|
||||
|
||||
@@ -144,6 +144,11 @@ public class Api8Adapter implements ApiAdapter {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean showEditTextClearButton() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTabBackground(TabWidget tabWidget) {
|
||||
// Do nothing
|
||||
|
||||
@@ -176,8 +176,17 @@ public interface ApiAdapter {
|
||||
*/
|
||||
public boolean isSpinnerBackgroundLight();
|
||||
|
||||
/**
|
||||
* True to display a clear button on the right of the edit text.
|
||||
* <p>
|
||||
* Due to changes in API level 11.
|
||||
*/
|
||||
public boolean showEditTextClearButton();
|
||||
|
||||
/**
|
||||
* Sets the tab background.
|
||||
* <p>
|
||||
* Due to changes in API level 11.
|
||||
*
|
||||
* @param tabWidget the tab widget
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user