forked from upstream-mirrors/OpenTracks
Removed unused sharing and seach icons.
This commit is contained in:
@@ -593,8 +593,7 @@ public class TrackListActivity extends AbstractTrackActivity implements FileType
|
||||
startGpsMenuItem.setVisible(!isRecording);
|
||||
if (!isRecording) {
|
||||
startGpsMenuItem.setTitle(isGpsStarted ? R.string.menu_stop_gps : R.string.menu_start_gps);
|
||||
startGpsMenuItem.setIcon(
|
||||
isGpsStarted ? R.drawable.ic_menu_stop_gps : R.drawable.ic_menu_start_gps);
|
||||
startGpsMenuItem.setIcon(isGpsStarted ? R.drawable.ic_menu_stop_gps : R.drawable.ic_menu_start_gps);
|
||||
TrackIconUtils.setMenuIconColor(startGpsMenuItem);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,6 +238,8 @@ public class TrackIconUtils {
|
||||
*/
|
||||
private static void revertMenuIconColor(MenuItem menuitem) {
|
||||
Drawable drawable = menuitem.getIcon();
|
||||
drawable.setColorFilter(new ColorMatrixColorFilter(REVERT_COLOR_MATRIX));
|
||||
if (drawable != null) {
|
||||
drawable.setColorFilter(new ColorMatrixColorFilter(REVERT_COLOR_MATRIX));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB |
@@ -21,7 +21,6 @@ limitations under the License.
|
||||
android:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/marker_list_search"
|
||||
android:icon="@drawable/ic_menu_search"
|
||||
android:title="@string/menu_search"
|
||||
android:actionViewClass="android.widget.SearchView"
|
||||
android:showAsAction="ifRoom|collapseActionView" />
|
||||
|
||||
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/search_list_search"
|
||||
android:icon="@drawable/ic_menu_search"
|
||||
android:title="@string/menu_search"
|
||||
android:actionViewClass="android.widget.SearchView"
|
||||
app:showAsAction="ifRoom|collapseActionView" />
|
||||
|
||||
@@ -16,7 +16,6 @@ limitations under the License.
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:id="@+id/track_list_search"
|
||||
android:icon="@drawable/ic_menu_search"
|
||||
android:title="@string/menu_search"
|
||||
android:actionViewClass="android.widget.SearchView"
|
||||
android:showAsAction="ifRoom" />
|
||||
|
||||
Reference in New Issue
Block a user