commit | 049b8fa77a81d5a7763f17f19fee09690ccd12a9 | [log] [tgz] |
---|---|---|
author | Mihai Popa <popam@google.com> | Fri Apr 06 19:12:18 2018 +0100 |
committer | Mihai Popa <popam@google.com> | Wed May 02 12:16:46 2018 +0100 |
tree | f35513781424237c8b834c3c650db73790b22237 | |
parent | 523ebc04ecf5e94de5844f4862467eeae54b8d97 [diff] |
Use setCustomSelectionActionModeCallback Change Ib2348aef79a5153a40ed3ff39712879316cecab7 adds a possibility for developers to fix 66939160 in support library. The bug causes the menu created on text selection for ACTION_PROCESS_TEXT not to work properly for O and O_MR1 devices. This CL updates support library TextView extension widgets to use the bug fix introduced in the previous CL. Note that the first version of this CL (I56e4a33d8849b46dce6a4e8c657490f4683b549e) had to be reverted as it was causing an infinite loop between TextViewCompat and AppCompatTextView (actually any extension of TextView). Now we are always calling the super implementation of setCustomSelectionActionModeCallback to avoid this situation. Bug: 68991560 Test: none Change-Id: Ic7e7411c3e1fc5735290e9707cdcf6ac2dbb3746
We are not currently accepting new modules, features, or behavior changes.
NOTE: You will need to use Linux or Mac OS. Building under Windows is not currently supported.
Follow the “Downloading the Source” guide to install and set up repo
tool, but instead of running the listed repo
commands to initialize the repository, run the folowing:
repo init -u https://android.googlesource.com/platform/manifest -b ub-supportlib-master
Now your repository is set to pull only what you need for building and running support library. Download the code (and grab a coffee while we pull down 7GB):
repo sync -j8 -c
You will use this command to sync your checkout in the future - it’s similar to git fetch
Open path/to/checkout/frameworks/support/
in Android Studio. Now you're ready edit, run, and test!
If you get “Unregistered VCS root detected” click “Add root” to enable git integration for Android Studio.
If you see any warnings (red underlines) run Build > Clean Project
.
You can do most of your work from Android Studio, however you can also build the full support library from command line:
cd path/to/checkout/frameworks/support/ ./gradlew createArchive
If you intend to repeatedly make changes to Support Library and to wish to see the results in your app, and you don't want to have to repeatedly build them as separate Gradle projects, you can configure your app build to build Support Library too
Run FooBarTest
Run android.support.foobar
Support library has a set of Android applications that exercise support library code. These applications can be useful when you want to debug a real running application, or reproduce a problem interactively, before writing test code.
These applications are named support-*-demos (e.g. support-4v-demos or support-leanback-demos. You can run them by clicking Run > Run ...
and choosing the desired application.
cd path/to/checkout/frameworks/support/ repo start my_branch_name . (make needed modifications) git commit -a repo upload --current-branch .
If you see the following prompt, choose always
:
Run hook scripts from https://android.googlesource.com/platform/manifest (yes/always/NO)?