Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
10bits committed Jun 7, 2023
1 parent ef1b156 commit b4f20e5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions diy/diy_10bits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,4 @@ function my_launcher_icon(){
find $APP_WORKSPACE/app/src -regex '.*/res/.*/ic_launcher.xml' -exec \
sed "/background/d" {} -i \;
}
function bookshelfAdd_no_alert()
{
debug "关闭加入书架提示"
find $APP_WORKSPACE/app/src -regex '.*/ReadBookActivity.kt' -exec \
sed -e '/fun finish()/,/fun onDestroy()/{s/alert/\/*&/;s/show()/&*\//}' \
-e '/!ReadBook.inBookshelf/a\viewModel.removeFromBookshelf{ super.finish() }' \
{} -i \;
}
my_launcher_icon;
bookshelfAdd_no_alert;

0 comments on commit b4f20e5

Please sign in to comment.