mirror of https://github.com/BOINC/boinc.git
android: bug fix ticket #1278, transperancy in project icon
This commit is contained in:
parent
214d6c7123
commit
e2ef25bc7b
|
@ -19,4 +19,5 @@
|
|||
-->
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
|
||||
<stroke android:width="1dip" android:color="@color/light_blue"/>
|
||||
<solid android:color="@android:color/transparent"/>
|
||||
</shape>
|
||||
|
|
|
@ -267,13 +267,10 @@ public class ClientStatus {
|
|||
//Log.d(TAG,"getSlideshowImages() retrieve number file paths: " + filePaths.size());
|
||||
|
||||
// load images from paths
|
||||
BitmapFactory.Options options = new BitmapFactory.Options();
|
||||
options.inDither = true;
|
||||
options.inSampleSize = 1;
|
||||
int x = 0;
|
||||
for (String filePath : filePaths) {
|
||||
if(x >= maxImagesPerProject) continue;
|
||||
Bitmap tmp = BitmapFactory.decodeFile(filePath, options);
|
||||
Bitmap tmp = BitmapFactory.decodeFile(filePath);
|
||||
if(tmp!=null) slideshowImages.add(new ImageWrapper(tmp,project.project_name));
|
||||
else Log.d(TAG,"loadSlideshowImagesFromFile(): null for path: " + filePath);
|
||||
x++;
|
||||
|
@ -295,7 +292,6 @@ public class ClientStatus {
|
|||
String iconAbsPath = parseSoftLinkToAbsPath(project.project_dir + "/stat_icon", project.project_dir);
|
||||
if (iconAbsPath == null) return null;
|
||||
//Log.d(TAG, "getProjectIcons() absolute path to icon: " + iconAbsPath);
|
||||
|
||||
Bitmap icon = BitmapFactory.decodeFile(iconAbsPath);
|
||||
return icon;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue