xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.63k stars 1.88k forks source link

Set enabled after delay not working on Android #6612

Open TylerBoyes opened 5 years ago

TylerBoyes commented 5 years ago

I believe there is a bug on Android versions when using a delay to "fade to" a button and then setting it enabled. Everything works as expected on the iOS build but fails for become enabled on the Android build. I have reproduced this issue with a minimum project and uploaded said project in TestApp.zip.

Steps to Reproduce

To reproduce bug

  1. Setup environment for android development
  2. Build app for Android
  3. Run app
  4. Click button "Show Button"

    Observe "Click Me" fade in

  5. Tap button "Click Me"

    [BUG] Button is not enabled although it has been set so

TestApp.zip

Expected Behavior

Click "Show Button" Button "Click Me" appears and is set enabled When pressing "Click Me" text message should change

Actual Behavior

Click "Show Button" Button "Click Me" is still disabled

Version Information

Visual Studio Community 2017 for Mac Version 7.8.3 (build 2) Installation UUID: a9d31f15-8d43-49fa-8ed9-9f4664765dbc GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 5.0.0.0 ( / b40230c0)

Package version: 516000238

Mono Framework MDK Runtime: Mono 5.16.0.238 (2018-06/99d74f7f6ee) (64-bit) Package version: 516000238

NuGet Version: 4.8.2.5835

.NET Core Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 2.1.8 2.1.2 SDK: /usr/local/share/dotnet/sdk/2.1.504/Sdks SDK Versions: 2.1.504 2.1.302 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.16.0/lib/mono/msbuild/15.0/bin/Sdks

Xamarin.Profiler Version: 1.6.4 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Updater Version: 11

Apple Developer Tools Xcode 10.1 (14460.46) Build 10B61

Xamarin.Mac Version: 5.2.1.15 (Visual Studio Community) Hash: d60abd198 Branch: Build date: 2019-02-01 12:23:30-0500

Xamarin.iOS Version: 12.2.1.15 (Visual Studio Community) Hash: d60abd198 Branch: d15-9 Build date: 2019-02-01 12:23:29-0500

Xamarin.Android Version: 9.1.8.0 (Visual Studio Community) Android SDK: /Volumes/TRANSCEND/Library/Xamarin/android-sdk-macosx Supported Android versions: 6.0 (API level 23) 7.1 (API level 25) 8.1 (API level 27)

SDK Tools Version: 25.2.5 SDK Platform Tools Version: 28.0.1 SDK Build Tools Version: 25.0.3

Microsoft Mobile OpenJDK Java SDK: /Users/macbook/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25 1.8.0-25 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL

Android Device Manager Version: 7.8.1.0 Hash: 8924ea4a

Xamarin Inspector Version: 1.4.3 Hash: db27525 Branch: 1.4-release Build date: Mon, 09 Jul 2018 21:20:18 GMT Client compatibility: 1

Build Information Release ID: 708030002 Git revision: fd02e670fdd6b101bc9c08b1cc5b7710d9f58cd8 Build date: 2019-03-08 10:30:21+00 Build branch: release-7.8 Xamarin extensions: 1f72f0a3737128552336f27e189d3c4f0cdebd00

Operating System Mac OS X 10.14.2 Darwin 18.2.0 Darwin Kernel Version 18.2.0 Mon Nov 12 20:24:46 PST 2018 root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64

Log File

Received "Permission Denied" If the log is important I can effort to solve this and provide a log.

radekdoulik commented 5 years ago

Looks like XForms issue. @StephaneDelcroix, could you please take a look at it or reassign to someone in XForms team?

samhouts commented 5 years ago

Confirmed the behavior. An easy workaround is to reverse the statements (enable the Button first). Thanks!