From b385a4b053e51a7076d87c80eb53ca451d0bdfb6 Mon Sep 17 00:00:00 2001 From: volzhs Date: Tue, 4 Dec 2018 06:46:43 +0900 Subject: Fix lint error/warning while building android template --- platform/android/java/README.md | 47 + .../android/java/gradle/wrapper/gradle-wrapper.jar | Bin 53636 -> 54329 bytes .../java/gradle/wrapper/gradle-wrapper.properties | 3 +- platform/android/java/gradlew | 72 +- platform/android/java/gradlew.bat | 174 +- .../notify_panel_notification_icon_bg.png | Bin 462 -> 1843 bytes .../notify_panel_notification_icon_bg.png | Bin 127 -> 718 bytes platform/android/java/res/drawable-nodpi/icon.png | Bin 0 -> 7569 bytes .../notify_panel_notification_icon_bg.png | Bin 0 -> 462 bytes .../notify_panel_notification_icon_bg.png | Bin 0 -> 2830 bytes platform/android/java/res/drawable/icon.png | Bin 7569 -> 0 bytes .../java/res/layout/downloading_expansion.xml | 47 +- .../status_bar_ongoing_event_progress_bar.xml | 26 +- platform/android/java/res/values-ko/strings.xml | 2 +- platform/android/java/res/values-v11/styles.xml | 6 - platform/android/java/res/values-v9/styles.xml | 5 - platform/android/java/res/values/strings.xml | 2 +- .../android/vending/licensing/AESObfuscator.java | 110 -- .../vending/licensing/APKExpansionPolicy.java | 397 ---- .../android/vending/licensing/DeviceLimiter.java | 47 - .../vending/licensing/ILicenseResultListener.aidl | 23 - .../vending/licensing/ILicenseResultListener.java | 115 -- .../vending/licensing/ILicensingService.aidl | 25 - .../vending/licensing/ILicensingService.java | 115 -- .../android/vending/licensing/LicenseChecker.java | 351 ---- .../vending/licensing/LicenseCheckerCallback.java | 67 - .../vending/licensing/LicenseValidator.java | 224 --- .../vending/licensing/NullDeviceLimiter.java | 32 - .../com/android/vending/licensing/Obfuscator.java | 48 - .../src/com/android/vending/licensing/Policy.java | 59 - .../vending/licensing/PreferenceObfuscator.java | 77 - .../android/vending/licensing/ResponseData.java | 79 - .../vending/licensing/ServerManagedPolicy.java | 276 --- .../android/vending/licensing/StrictPolicy.java | 63 - .../vending/licensing/ValidationException.java | 33 - .../com/android/vending/licensing/util/Base64.java | 570 ------ .../licensing/util/Base64DecoderException.java | 32 - .../vending/expansion/downloader/Constants.java | 177 +- .../expansion/downloader/DownloadProgressInfo.java | 80 +- .../downloader/DownloaderClientMarshaller.java | 317 ++-- .../downloader/DownloaderServiceMarshaller.java | 270 +-- .../vending/expansion/downloader/Helpers.java | 486 ++--- .../expansion/downloader/IDownloaderClient.java | 62 +- .../expansion/downloader/IDownloaderService.java | 32 +- .../vending/expansion/downloader/IStub.java | 6 +- .../vending/expansion/downloader/SystemFacade.java | 169 +- .../downloader/impl/AndroidHttpClient.java | 536 ------ .../downloader/impl/CustomIntentService.java | 131 +- .../downloader/impl/CustomNotificationFactory.java | 30 - .../expansion/downloader/impl/DownloadInfo.java | 112 +- .../downloader/impl/DownloadNotification.java | 352 ++-- .../expansion/downloader/impl/DownloadThread.java | 1530 +++++++-------- .../downloader/impl/DownloaderService.java | 1941 ++++++++++---------- .../expansion/downloader/impl/DownloadsDB.java | 887 +++++---- .../expansion/downloader/impl/HttpDateTime.java | 295 ++- .../downloader/impl/V14CustomNotification.java | 101 - .../android/vending/licensing/AESObfuscator.java | 110 ++ .../vending/licensing/APKExpansionPolicy.java | 413 +++++ .../android/vending/licensing/DeviceLimiter.java | 47 + .../vending/licensing/ILicenseResultListener.aidl | 23 + .../vending/licensing/ILicenseResultListener.java | 100 + .../vending/licensing/ILicensingService.aidl | 25 + .../vending/licensing/ILicensingService.java | 100 + .../android/vending/licensing/LicenseChecker.java | 387 ++++ .../vending/licensing/LicenseCheckerCallback.java | 67 + .../vending/licensing/LicenseValidator.java | 232 +++ .../vending/licensing/NullDeviceLimiter.java | 32 + .../android/vending/licensing/Obfuscator.java | 48 + .../google/android/vending/licensing/Policy.java | 65 + .../vending/licensing/PreferenceObfuscator.java | 78 + .../android/vending/licensing/ResponseData.java | 80 + .../vending/licensing/ServerManagedPolicy.java | 299 +++ .../android/vending/licensing/StrictPolicy.java | 99 + .../vending/licensing/ValidationException.java | 33 + .../android/vending/licensing/util/Base64.java | 556 ++++++ .../licensing/util/Base64DecoderException.java | 32 + .../vending/licensing/util/URIQueryDecoder.java | 60 + .../java/src/org/godotengine/godot/Godot.java | 148 +- .../java/src/org/godotengine/godot/GodotIO.java | 38 +- .../java/src/org/godotengine/godot/GodotView.java | 59 +- .../org/godotengine/godot/input/GodotEditText.java | 72 +- .../godot/input/InputManagerCompat.java | 7 +- .../godotengine/godot/input/InputManagerV9.java | 209 --- .../godotengine/godot/payments/ConsumeTask.java | 88 +- .../godot/payments/GenericConsumeTask.java | 79 - .../godotengine/godot/payments/PaymentsCache.java | 4 +- .../godot/payments/PaymentsManager.java | 4 +- .../godot/payments/ReleaseAllConsumablesTask.java | 82 +- .../godotengine/godot/payments/ValidateTask.java | 129 +- .../org/godotengine/godot/utils/HttpRequester.java | 4 +- 90 files changed, 6816 insertions(+), 7634 deletions(-) create mode 100644 platform/android/java/README.md create mode 100644 platform/android/java/res/drawable-nodpi/icon.png create mode 100644 platform/android/java/res/drawable-xhdpi/notify_panel_notification_icon_bg.png create mode 100644 platform/android/java/res/drawable-xxhdpi/notify_panel_notification_icon_bg.png delete mode 100644 platform/android/java/res/drawable/icon.png delete mode 100644 platform/android/java/res/values-v11/styles.xml delete mode 100644 platform/android/java/res/values-v9/styles.xml delete mode 100644 platform/android/java/src/com/android/vending/licensing/AESObfuscator.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/APKExpansionPolicy.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/DeviceLimiter.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/ILicenseResultListener.aidl delete mode 100644 platform/android/java/src/com/android/vending/licensing/ILicenseResultListener.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/ILicensingService.aidl delete mode 100644 platform/android/java/src/com/android/vending/licensing/ILicensingService.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/LicenseChecker.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/LicenseCheckerCallback.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/LicenseValidator.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/NullDeviceLimiter.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/Obfuscator.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/Policy.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/PreferenceObfuscator.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/ResponseData.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/ServerManagedPolicy.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/StrictPolicy.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/ValidationException.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/util/Base64.java delete mode 100644 platform/android/java/src/com/android/vending/licensing/util/Base64DecoderException.java delete mode 100644 platform/android/java/src/com/google/android/vending/expansion/downloader/impl/AndroidHttpClient.java delete mode 100644 platform/android/java/src/com/google/android/vending/expansion/downloader/impl/CustomNotificationFactory.java delete mode 100644 platform/android/java/src/com/google/android/vending/expansion/downloader/impl/V14CustomNotification.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/AESObfuscator.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/APKExpansionPolicy.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/DeviceLimiter.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/ILicenseResultListener.aidl create mode 100644 platform/android/java/src/com/google/android/vending/licensing/ILicenseResultListener.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/ILicensingService.aidl create mode 100644 platform/android/java/src/com/google/android/vending/licensing/ILicensingService.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/LicenseChecker.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/LicenseCheckerCallback.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/LicenseValidator.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/NullDeviceLimiter.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/Obfuscator.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/Policy.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/PreferenceObfuscator.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/ResponseData.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/ServerManagedPolicy.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/StrictPolicy.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/ValidationException.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/util/Base64.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/util/Base64DecoderException.java create mode 100644 platform/android/java/src/com/google/android/vending/licensing/util/URIQueryDecoder.java delete mode 100644 platform/android/java/src/org/godotengine/godot/input/InputManagerV9.java delete mode 100644 platform/android/java/src/org/godotengine/godot/payments/GenericConsumeTask.java (limited to 'platform/android/java') diff --git a/platform/android/java/README.md b/platform/android/java/README.md new file mode 100644 index 0000000000..58d2b10706 --- /dev/null +++ b/platform/android/java/README.md @@ -0,0 +1,47 @@ +# Third party libraries + + +## Google's vending library + +- Upstream: https://github.com/google/play-licensing/tree/master/lvl_library/src/main/java/com/google/android/vending +- Version: git (eb57657, 2018) with modifications +- License: Apache 2.0 + +Overwrite all files under `com/google/android/vending` + +### Modify some files to avoid compile error and lint warning + +#### com/google/android/vending/licensing/util/Base64.java +``` +@@ -338,7 +338,8 @@ public class Base64 { + e += 4; + } + +- assert (e == outBuff.length); ++ if (BuildConfig.DEBUG && e != outBuff.length) ++ throw new RuntimeException(); + return outBuff; + } +``` + +#### com/google/android/vending/licensing/LicenseChecker.java +``` +@@ -29,8 +29,8 @@ import android.os.RemoteException; + import android.provider.Settings.Secure; + import android.util.Log; + +-import com.android.vending.licensing.ILicenseResultListener; +-import com.android.vending.licensing.ILicensingService; ++import com.google.android.vending.licensing.ILicenseResultListener; ++import com.google.android.vending.licensing.ILicensingService; + import com.google.android.vending.licensing.util.Base64; + import com.google.android.vending.licensing.util.Base64DecoderException; +``` +``` +@@ -287,13 +287,15 @@ public class LicenseChecker implements ServiceConnection { + if (logResponse) { +- String android_id = Secure.getString(mContext.getContentResolver(), +- Secure.ANDROID_ID); ++ String android_id = Secure.ANDROID_ID; + Date date = new Date(); +``` diff --git a/platform/android/java/gradle/wrapper/gradle-wrapper.jar b/platform/android/java/gradle/wrapper/gradle-wrapper.jar index 13372aef5e..f6b961fd5a 100644 Binary files a/platform/android/java/gradle/wrapper/gradle-wrapper.jar and b/platform/android/java/gradle/wrapper/gradle-wrapper.jar differ diff --git a/platform/android/java/gradle/wrapper/gradle-wrapper.properties b/platform/android/java/gradle/wrapper/gradle-wrapper.properties index 6fb3a79546..bf3de21830 100644 --- a/platform/android/java/gradle/wrapper/gradle-wrapper.properties +++ b/platform/android/java/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,5 @@ -#Sat Jul 29 16:10:03 ICT 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip diff --git a/platform/android/java/gradlew b/platform/android/java/gradlew index 9d82f78915..cccdd3d517 100755 --- a/platform/android/java/gradlew +++ b/platform/android/java/gradlew @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh ############################################################################## ## @@ -6,20 +6,38 @@ ## ############################################################################## -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null APP_NAME="Gradle" APP_BASE_NAME=`basename "$0"` +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD="maximum" -warn ( ) { +warn () { echo "$*" } -die ( ) { +die () { echo echo "$*" echo @@ -30,6 +48,7 @@ die ( ) { cygwin=false msys=false darwin=false +nonstop=false case "`uname`" in CYGWIN* ) cygwin=true @@ -40,26 +59,11 @@ case "`uname`" in MINGW* ) msys=true ;; + NONSTOP* ) + nonstop=true + ;; esac -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null - CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. @@ -85,7 +89,7 @@ location of your Java installation." fi # Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then MAX_FD_LIMIT=`ulimit -H -n` if [ $? -eq 0 ] ; then if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then @@ -150,11 +154,19 @@ if $cygwin ; then esac fi -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " } -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" +exec "$JAVACMD" "$@" diff --git a/platform/android/java/gradlew.bat b/platform/android/java/gradlew.bat index 8a0b282aa6..e95643d6a2 100644 --- a/platform/android/java/gradlew.bat +++ b/platform/android/java/gradlew.bat @@ -1,90 +1,84 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/platform/android/java/res/drawable-hdpi/notify_panel_notification_icon_bg.png b/platform/android/java/res/drawable-hdpi/notify_panel_notification_icon_bg.png index 372b763ec5..2c246b04a4 100644 Binary files a/platform/android/java/res/drawable-hdpi/notify_panel_notification_icon_bg.png and b/platform/android/java/res/drawable-hdpi/notify_panel_notification_icon_bg.png differ diff --git a/platform/android/java/res/drawable-mdpi/notify_panel_notification_icon_bg.png b/platform/android/java/res/drawable-mdpi/notify_panel_notification_icon_bg.png index c61c440636..8bcd464bed 100644 Binary files a/platform/android/java/res/drawable-mdpi/notify_panel_notification_icon_bg.png and b/platform/android/java/res/drawable-mdpi/notify_panel_notification_icon_bg.png differ diff --git a/platform/android/java/res/drawable-nodpi/icon.png b/platform/android/java/res/drawable-nodpi/icon.png new file mode 100644 index 0000000000..6ad9b43117 Binary files /dev/null and b/platform/android/java/res/drawable-nodpi/icon.png differ diff --git a/platform/android/java/res/drawable-xhdpi/notify_panel_notification_icon_bg.png b/platform/android/java/res/drawable-xhdpi/notify_panel_notification_icon_bg.png new file mode 100644 index 0000000000..372b763ec5 Binary files /dev/null and b/platform/android/java/res/drawable-xhdpi/notify_panel_notification_icon_bg.png differ diff --git a/platform/android/java/res/drawable-xxhdpi/notify_panel_notification_icon_bg.png b/platform/android/java/res/drawable-xxhdpi/notify_panel_notification_icon_bg.png new file mode 100644 index 0000000000..b458ff3057 Binary files /dev/null and b/platform/android/java/res/drawable-xxhdpi/notify_panel_notification_icon_bg.png differ diff --git a/platform/android/java/res/drawable/icon.png b/platform/android/java/res/drawable/icon.png deleted file mode 100644 index 6ad9b43117..0000000000 Binary files a/platform/android/java/res/drawable/icon.png and /dev/null differ diff --git a/platform/android/java/res/layout/downloading_expansion.xml b/platform/android/java/res/layout/downloading_expansion.xml index d678d94eac..4a9700965f 100644 --- a/platform/android/java/res/layout/downloading_expansion.xml +++ b/platform/android/java/res/layout/downloading_expansion.xml @@ -15,7 +15,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" - android:layout_marginLeft="5dp" + android:layout_marginStart="5dp" android:layout_marginTop="10dp" android:textStyle="bold" /> @@ -23,12 +23,11 @@ android:id="@+id/downloaderDashboard" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:layout_below="@id/statusText" android:orientation="vertical" > - + android:layout_alignParentStart="true" + android:layout_marginStart="5dp" /> + android:layout_alignEnd="@+id/progressBar" /> + android:layout_marginTop="10dp" /> + android:layout_marginStart="5dp" /> @@ -86,33 +81,35 @@ android:orientation="horizontal" >