Fix battery usage screen issues

Tint icons properly
Bug: 21077770

Show better icons for wifi and bt (remove the old ones)
Bug: 21172936

Also add a way to show fake items in power list for testing.

Change-Id: I6b6804673a68190ebc3f2ea32802e30811a7f5b2
This commit is contained in:
Jason Monk
2015-06-02 13:03:24 -04:00
parent b8df8a29bf
commit f2819e0ead
21 changed files with 88 additions and 54 deletions

View File

@@ -222,7 +222,7 @@ public final class BluetoothDevicePreference extends Preference implements
data.className = BluetoothSettings.class.getName();
data.title = mCachedDevice.getName();
data.screenTitle = context.getResources().getString(R.string.bluetooth_settings);
data.iconResId = R.drawable.ic_settings_bluetooth2;
data.iconResId = R.drawable.ic_settings_bluetooth;
data.enabled = true;
Index.getInstance(context).updateFromSearchIndexableData(data);
@@ -268,6 +268,6 @@ public final class BluetoothDevicePreference extends Preference implements
return R.drawable.ic_bt_headset_hfp;
}
}
return R.drawable.ic_settings_bluetooth2;
return R.drawable.ic_settings_bluetooth;
}
}