diff --git a/app/build.gradle b/app/build.gradle index 8def24db..52a04088 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "info.dvkr.screenstream" minSdkVersion 21 targetSdkVersion 24 - versionCode 2 - versionName "1.0.1" + versionCode 3 + versionName "1.0.2" resConfigs "en", "ru" } diff --git a/app/src/main/java/info/dvkr/screenstream/ImageGenerator.java b/app/src/main/java/info/dvkr/screenstream/ImageGenerator.java index 3d5ff279..4b1d8353 100644 --- a/app/src/main/java/info/dvkr/screenstream/ImageGenerator.java +++ b/app/src/main/java/info/dvkr/screenstream/ImageGenerator.java @@ -91,7 +91,7 @@ void start() { imageThread = new HandlerThread("Image capture thread", Process.THREAD_PRIORITY_MORE_FAVORABLE); imageThread.start(); - imageReader = ImageReader.newInstance(ApplicationContext.getScreenSize().x, ApplicationContext.getScreenSize().y, PixelFormat.RGBX_8888, 2); + imageReader = ImageReader.newInstance(ApplicationContext.getScreenSize().x, ApplicationContext.getScreenSize().y, PixelFormat.RGBA_8888, 2); imageHandler = new Handler(imageThread.getLooper()); jpegOutputStream = new ByteArrayOutputStream(); imageReader.setOnImageAvailableListener(new ImageAvailableListener(), imageHandler);