[AC-5036] Android: Change in behaviour for the on-screen nav buttons displayed
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-07-05T18:03:23.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | n/a |
| Reporter | Muhammad Ahmed Fahad |
| Assignee | Yordan Banev |
| Created | 2017-06-19T04:09:41.000+0000 |
| Updated | 2017-07-05T18:03:23.000+0000 |
Description
Environment: 6.1.1.v20170615113917 Android 7.1.2 Device: OnePlus One (A0001)
Affected version 6.1.0, 6.1.1
Whilst using the module dk.napp.drawer (https://github.com/viezel/NappDrawer) the lower part of the drawer is now eclipsed by the onscreen-nav-bar on phones which have on screen nav-bars. No issues on phones with capacitive navigation/home buttons. This didn't use to be the case with Ti SDK 6.0.4.
Kindly see screenshots for difference in behaviour between 6.0.4 and 6.1.1.
With SDK 6.0.4:
https://s3-ap-southeast-1.amazonaws.com/uploads-ap.hipchat.com/56929/750866/kgJh35d3Od6bd9L/Screenshot_20170619-115259.png
With SDK 6.1.1.v20170615113917:
https://s3-ap-southeast-1.amazonaws.com/uploads-ap.hipchat.com/56929/750866/4vbBloyecxgp6cU/with_sdk_6.1.1.v20170615113917.png
The module listed is one of the most used 3rd-party modules at least according to: http://gitt.io/
Would be helpful if:
a) The difference in behaviour can be resolved at the SDK level
or
b) The change in behaviour is documented and also ideally a workaround solution
Attachments
| File | Date | Size |
|---|---|---|
| with_sdk_6.0.4.png | 2017-06-19T03:54:50.000+0000 | 451481 |
| with_sdk_6.1.1.v20170615113917.png | 2017-06-19T04:02:58.000+0000 | 741065 |
One of the libraries (SlidingMenu) used in the module seems to have a problem which was exposed with the upgrade of the SDK. There are two ways to work around that: - Set the application's targetSDKversion to 19 or below; - Add the following code in android/src/com/slidingmenu/lib/SlidingMenu.java Line:310
and rebuild the module;public void attachToActivity(Activity activity, int slideStyle) { attachToActivity(activity, slideStyle, false); if(slideStyle == SLIDING_WINDOW && Build.VERSION.SDK_INT >= 21) { setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION); } }Hello [~fahad86], Can you follow up on the [~ybanev], comment?
Thanks Yordan Banev, I'm using the 2nd workaround and I've submitted a pull request for the module: https://github.com/viezel/NappDrawer/pull/204
Sharif/Yordan you can mark this item as resolved