Skip to content

Commit 0e5f50d

Browse files
finalizing
1 parent 6af4cf3 commit 0e5f50d

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,10 @@
6767
alt="Get it on F-Droid"
6868
height="80">](https://github.com/Mohammed-baqer-null/AndroidIDE-Rv2/releases)
6969

70-
> _Please install AndroidIDE from trusted sources only i.e._
71-
> > - [_The AndroidIDE website_](https://androidide.com)
70+
> _Please install AndroidIDE-Rv2 from trusted sources only i.e._
7271
> - [_GitHub Releases_](https://github.com/Mohammed-baqer-null/AndroidIDE-Rv2/releases)
73-
> - [_GitHub Actions_](https://github.com/Mohammed-baqer-null/AndroidIDE-Rv2/actions?query=branch%3Adev+event%3Apush)
74-
> - [_F-Droid_](https://f-droid.org/packages/com.itsaky.androidide/)
7572
76-
- Download the AndroidIDE APK from the mentioned trusted sources.
73+
- Download the AndroidIDE-Rv2 APK from the mentioned trusted sources.
7774
- Follow the
7875
instructions [here](https://docs.androidide.com/tutorials/get-started.html) to
7976
install the build tools.
@@ -82,7 +79,7 @@
8279

8380
- For working with projects in AndroidIDE, your project must use Android Gradle Plugin v7.2.0 or
8481
newer. Projects with older AGP must be migrated to newer versions.
85-
- SDK Manager is already included in Android SDK and is accessible in AndroidIDE via its Terminal.
82+
- SDK Manager is already included in Android SDK and is accessible in AndroidIDE-Rv2 via its Terminal.
8683
But, you cannot use it to install some tools (like NDK) because those tools are not built for
8784
Android.
8885
- No official NDK support because we haven't built the NDK for Android.
@@ -123,12 +120,12 @@ Thanks to all the developers who have contributed to this project.
123120
## License
124121

125122
```
126-
AndroidIDE is free software: you can redistribute it and/or modify
123+
AndroidIDE-Rv2 is free software: you can redistribute it and/or modify
127124
it under the terms of the GNU General Public License as published by
128125
the Free Software Foundation, either version 3 of the License, or
129126
(at your option) any later version.
130127
131-
AndroidIDE is distributed in the hope that it will be useful,
128+
AndroidIDE-Rv2 is distributed in the hope that it will be useful,
132129
but WITHOUT ANY WARRANTY; without even the implied warranty of
133130
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
134131
GNU General Public License for more details.

core/app/src/main/java/com/itsaky/androidide/activities/editor/EditorHandlerActivity.kt

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,6 @@ open class EditorHandlerActivity : ProjectHandlerActivity(), IEditorHandler {
215215
val data = createToolbarActionData()
216216
val actions = getInstance().getActions(EDITOR_TOOLBAR)
217217

218-
// Calculate available space (rough estimate)
219-
val displayMetrics = resources.displayMetrics
220-
val screenWidth = displayMetrics.widthPixels
221-
val actionButtonWidth = (48 * displayMetrics.density).toInt()
222-
val maxVisibleActions = (screenWidth * 0.7 / actionButtonWidth).toInt()
223-
224-
var visibleActionCount = 0
225-
226218
actions.forEach { (_, action) ->
227219
menu.findItem(action.itemId)?.let { item ->
228220
action.prepare(data)
@@ -238,8 +230,7 @@ open class EditorHandlerActivity : ProjectHandlerActivity(), IEditorHandler {
238230

239231
var showAsAction = action.getShowAsActionFlags(data)
240232
if (showAsAction == -1) {
241-
showAsAction = if (action.icon != null && action.enabled && visibleActionCount < maxVisibleActions) {
242-
visibleActionCount++
233+
showAsAction = if (action.icon != null && action.enabled) {
243234
MenuItem.SHOW_AS_ACTION_ALWAYS
244235
} else if (action.icon != null) {
245236
MenuItem.SHOW_AS_ACTION_IF_ROOM
@@ -248,10 +239,6 @@ open class EditorHandlerActivity : ProjectHandlerActivity(), IEditorHandler {
248239
}
249240
}
250241

251-
if (!action.enabled) {
252-
showAsAction = MenuItem.SHOW_AS_ACTION_NEVER
253-
}
254-
255242
item.setShowAsAction(showAsAction)
256243

257244
action.createActionView(data)?.let { item.actionView = it }

0 commit comments

Comments
 (0)