Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
bcaa4cd4
Kaydet (Commit)
bcaa4cd4
authored
Şub 19, 2013
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sdremote: debugging to get a better handle on failed image allocations.
üst
49db9034
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
SlideShow.java
...rg/libreoffice/impressremote/communication/SlideShow.java
+10
-1
No files found.
android/sdremote/src/org/libreoffice/impressremote/communication/SlideShow.java
Dosyayı görüntüle @
bcaa4cd4
...
...
@@ -9,7 +9,9 @@
package
org
.
libreoffice
.
impressremote
.
communication
;
import
org.libreoffice.impressremote.R
;
import
org.libreoffice.impressremote.Globals
;
import
android.util.Log
;
import
android.content.Context
;
import
android.graphics.Bitmap
;
import
android.graphics.BitmapFactory
;
...
...
@@ -54,7 +56,14 @@ public class SlideShow {
return
BitmapFactory
.
decodeResource
(
mContext
.
getResources
(),
R
.
drawable
.
image_loading
);
}
Bitmap
aBitmap
=
BitmapFactory
.
decodeByteArray
(
aImage
,
0
,
aImage
.
length
);
Bitmap
aBitmap
=
null
;
try
{
aBitmap
=
BitmapFactory
.
decodeByteArray
(
aImage
,
0
,
aImage
.
length
);
}
catch
(
OutOfMemoryError
e
)
{
Log
.
e
(
Globals
.
TAG
,
"Bitmap decoding error byte length: "
+
aImage
.
length
+
"first 4 bytes: "
+
aImage
[
0
]
+
" "
+
aImage
[
1
]
+
" "
+
aImage
[
2
]
+
" "
+
aImage
[
3
]
+
"Exception "
+
e
);
}
if
(
aBitmap
==
null
)
{
return
BitmapFactory
.
decodeResource
(
mContext
.
getResources
(),
R
.
drawable
.
image_loading
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment