-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edit blog by [Rabbit](http://fir.gudong.site/g56c)
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
layout: mypost | ||
author: 咕咚 | ||
tags: think | ||
categories: daily | ||
title: "20241221" | ||
--- | ||
|
||
inBox 最近积累了不少 bug,今天修 bug !! | ||
|
||
--- | ||
inBox 笔记的分享支持了批注分享功能。 | ||
[图片] | ||
|
||
|
||
--- | ||
让 AI 写样板代码太舒服了。提供 menu 文件后,自动根据 menus 中的 id 生成代码,妥妥的 | ||
class MenuVisible(){ | ||
var a:Boolean = false | ||
var b:Boolean = false | ||
var c:Boolean = false | ||
var d:Boolean = false | ||
var e:Boolean = false | ||
var f:Boolean = false | ||
var g:Boolean = false | ||
var h:Boolean = false | ||
var i:Boolean = false | ||
var j:Boolean = false | ||
} | ||
private var menuVisible = MenuVisible() | ||
private fun showSelectCommentMode() { | ||
ToastUtils.show("点击批注,选择要分享的批注") | ||
val menu = toolbar.menu | ||
//初始化菜单状态为 | ||
menuVisible.apply { | ||
a = menu.findItem(R.id.action_edit).isVisible | ||
b = menu.findItem(R.id.action_share).isVisible | ||
c = menu.findItem(R.id.action_add).isVisible | ||
d = menu.findItem(R.id.action_copy).isVisible | ||
e = menu.findItem(R.id.action_stick_top).isVisible | ||
f = menu.findItem(R.id.action_favorite).isVisible | ||
g = menu.findItem(R.id.action_delete).isVisible | ||
h = menu.findItem(R.id.action_sync).isVisible | ||
i = menu.findItem(R.id.action_box).isVisible | ||
j = menu.findItem(R.id.action_more).isVisible | ||
} | ||
mViewModel.mSelectBlock.value = true | ||
} | ||
|
||
|
||
--- | ||
|
||
每日[咚记](https://fcngifhkzsmc.feishu.cn/wiki/TUF1wJIrbiY9OKkpCotch8Q8nud?fromScene=spaceOverview) | ||
by 咕咚 |