Change service icons for now

- Use place holders while the legal discussion is happening
This commit is contained in:
Mauricio Colli 2018-02-03 22:29:24 -02:00
parent 989ce126f1
commit cdde61a460
No known key found for this signature in database
GPG Key ID: F200BFD6F29DDD85
5 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ public class MainActivity extends AppCompatActivity implements HistoryListener {
final DrawerLayout drawer = findViewById(R.id.drawer_layout); final DrawerLayout drawer = findViewById(R.id.drawer_layout);
final NavigationView drawerItems = findViewById(R.id.navigation); final NavigationView drawerItems = findViewById(R.id.navigation);
drawerItems.setItemIconTintList(null); //drawerItems.setItemIconTintList(null); // Set null to use the original icon
drawerItems.getMenu().getItem(ServiceHelper.getSelectedServiceId(this)).setChecked(true); drawerItems.getMenu().getItem(ServiceHelper.getSelectedServiceId(this)).setChecked(true);
if (!BuildConfig.BUILD_TYPE.equals("release")) { if (!BuildConfig.BUILD_TYPE.equals("release")) {

View File

@ -18,9 +18,9 @@ public class ServiceHelper {
public static int getIcon(int serviceId) { public static int getIcon(int serviceId) {
switch (serviceId) { switch (serviceId) {
case 0: case 0:
return R.drawable.youtube; return R.drawable.place_holder_youtube;
case 1: case 1:
return R.drawable.soundcloud; return R.drawable.place_holder_circle;
default: default:
return R.drawable.service; return R.drawable.service;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -4,11 +4,11 @@
android:id="@+id/menu_services_group"> android:id="@+id/menu_services_group">
<item <item
android:id="@+id/menu_service_youtube" android:id="@+id/menu_service_youtube"
android:icon="@drawable/youtube" android:icon="@drawable/place_holder_youtube"
android:title="@string/youtube"/> android:title="@string/youtube"/>
<item <item
android:id="@+id/menu_service_soundcloud" android:id="@+id/menu_service_soundcloud"
android:icon="@drawable/soundcloud" android:icon="@drawable/place_holder_circle"
android:title="@string/soundcloud"/> android:title="@string/soundcloud"/>
</group> </group>
</menu> </menu>