Fixed
Status Update
Comments
uc...@google.com <uc...@google.com>
di...@google.com <di...@google.com>
di...@google.com <di...@google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Android build
Which Android build are you using? (e.g. PPP5.180610.010)
We tested this bug on Pixel devices and observed, it says:
"a% with valuetext slider".
Please confirm if you have also observed the same.
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:https://developer.android.com/studio/debug/bug-report#bugreportdevice
Screen record of the issue
Please capture screen record or video of the issue using following steps:
adb shell screenrecord /sdcard/video.mp4
Subsequently use following command to pull the recorded file:
adb pull /sdcard/video.mp4
Attach the file to this issue.
Note: Please avoid uploading directly to the issue using attachments. Please upload to google drive and share the folder to android-bugreport@google.com, then share the link here.
Android build
Which Android build are you using? (e.g. PPP5.180610.010)
We tested this bug on Pixel devices and observed, it says:
"a% with valuetext slider".
Please confirm if you have also observed the same.
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Screen record of the issue
Please capture screen record or video of the issue using following steps:
adb shell screenrecord /sdcard/video.mp4
Subsequently use following command to pull the recorded file:
adb pull /sdcard/video.mp4
Attach the file to this issue.
Note: Please avoid uploading directly to the issue using attachments. Please upload to google drive and share the folder to android-bugreport@google.com, then share the link here.
Description
AI-201.8743.12.41.6858069, JRE 1.8.0_242-release-1644-b01x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1200
AS: 4.1; Kotlin plugin: 1.3.72-release-Studio4.1-5; Android Gradle Plugin: 4.1.0; Gradle: 6.7; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
IMPORTANT: Please read
------------------------------------------------------------------------
Hello,
All versions of Android Studio saves caret-position of all opened files and restore it at next run of Android Studio. But NOT 4.1. I tried to find the reason why and finally I found it.
Android Studio save info about opened files in User\...\Google\AndroidStudioX.X\workspace\ folder in files like 1at5jrmcWnRDPT25ZEp4ya7ZuDE.xml.
For all version before, every opened file saved like this.
-----------------------------------------------------------------------------------
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/core/src/com/warlockstudio/game7/Game7.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="4788">
<caret line="284" column="26" selection-start-line="284" selection-start-column="26" selection-end-line="284" selection-end-column="26" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
-----------------------------------------------------------------------------------
In Android Studio 4.1 it saved as this:
-----------------------------------------------------------------------------------
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/core/src/com/warlockstudio/game7/Game7.java">
<provider selected="true" editor-type-id="android-source-code" />
</entry>
</file>
-----------------------------------------------------------------------------------
As you can see - now it used editor-type-id="android-source-code" instead of editor-type-id="text-editor" in previous versions. As result - no caret-position anymore. Files other than .java (like build.gradle) still opened and saved as editor-type-id="text-editor" therefore caret-position saved for this one.
How you can make this stupid bug??? Why you broke what works fine many years??? Fix it asap! It's just facepalm!!!