Flashlight should be gray after finishing Recor...
为什么80%的码农都做不了架构师?>>>
The process of reproducing the behavior:
Message App --> New Message --> Attach --> Capture Video -->click the Shutter button to start recording video --> click the shutter button to stop recording video --> flashlight is not gray state
The solutions:
private Runnable mVideoSavedRunnable = new Runnable(){public void run(){...setEnableRecordingUI(true);...}
}public void setEnableRecordingUI(boolean enable){...mFlashIndicator.setEnable(enable);...
}
As the code ,when Saving the video ,the setEnableRecordingUI() has been invoked.So we should add a judge condition to judge whether the activity is started by others or not. If others(like:Message App) start the video activity,we shouldn't enable the RecordingUI .
Thus ,we can do like these:
private Runnable mVideoSavedRunnable = new Runnable(){public void run(){...if (!mIsVideoCaptureIntent){setEnableRecordingUI(true);} ...}
}
转载于:https://my.oschina.net/jerikc/blog/79246
Flashlight should be gray after finishing Recor...相关推荐
- CUDA Samples: Image Process: BGR to Gray
在图像处理中,颜色变换BGR到Gray,常见的一般有两种计算方式,一种是基于浮点数计算,一种是基于性能优化的通过移位的整数计算. 浮点数计算公式为: gray = 0.1140 * B + 0.58 ...
- R语言ggplot2可视化分面图(facet_grid):去除分面图灰色矩形框以及框中的标签、Getting rid of facet_grid labels on those gray boxes
R语言ggplot2可视化分面图(facet_grid):去除分面图灰色矩形框以及框中的标签.Getting rid of facet_grid labels on those gray boxes ...
- 华人首次!清华姚班助理教授张焕晨获得SIGMOD Jim Gray博士论文奖!
来源:AI科技评论本文约1000字,建议阅读5分钟清华姚班助理教授张焕晨获得SIGMOD Jim Gray博士论文奖. 近日,ACM SIGMOD公布了2021年吉姆·格雷博士论文奖(SIGMOD J ...
- [LeetCode]Gray Code
题目描述:(链接) The gray code is a binary numeral system where two successive values differ in only one bi ...
- LeetCode Gray Code(回溯法)
问题:gray code是一种二进制数字系统,两个连续的数只有一位不同.给出一个正整数n,n表示gray code的位数,输出gray code. 思路:使用回溯法.通过枚举0,1,2,3的gray ...
- leetcode笔记:Gray Code(2016腾讯软件开发笔试题)
2019独角兽企业重金招聘Python工程师标准>>> 一.题目描述 The gray code is a binary numeral system where two succe ...
- 灰度不变性LBP( gray scale invariant) 旋转不变性LBP(rotation invariant)旋转不变等价LBP(rotation uniform invarian )
老外的原文:<Multiresolution gray-scale and rotation invariant texture classification with local binary ...
- 数字图像处理实验(2):PROJECT 02-02, Reducing the Number of Gray Levels in an Image
实验要求: Reducing the Number of Gray Levels in an Image Objective To understand how the number of gray ...
- 盖瑞解剖学: 临床实践的解剖学基础 Gray‘s Anatomy: The Anatomical Basis of Clinical Practice 高清英文原版
盖瑞解剖学: 临床实践的解剖学基础 Gray's Anatomy: The Anatomical Basis of Clinical Practice PDF 获取ebook<<<& ...
最新文章
- 关于空指针(指针指向为NULL)和void类型的指针的理解
- 【mysql】Mac下安装mysql5.7 完整步骤,大坑已解决
- 文本挖掘之文本相似度判定
- XidianOJ 1123 K=1 Problem of Orz Pandas
- ThinkPHP医疗门诊病人挂号管理在线付款系统源码
- 【389天】跃迁之路——程序员高效学习方法论探索系列(实验阶段146-2018.03.01)...
- 做了全职妈妈后,你的生活将有5个方面的变化
- python100例详解-Python字典实现简单的三级菜单(实例讲解)
- 小程序内嵌H5页面判断微信及小程序环境
- Java swing 开发windows桌面应用:课堂点名程序
- Java集合源码剖析——基于JDK1.8中LinkedList的实现原理
- 关于语音提醒app的设计思考
- Cocoa-Cocoa框架
- 升腾 linux管理密码,升腾Linux终端使用指南
- 三阶魔方与四阶魔方总结
- HTML让背景图片铺满整个图片
- cati服务器授权信息无效,cati安装
- 【SSH】--鸿雁传书,信件发送
- 制造行业mes使用说明书_mes系统操作手册完整版.docx
- CWRU(凯斯西储大学轴承数据中心)数据集获取
热门文章
- mavon-editor文本编辑器初体验(一)
- 倾斜模型精细化处理_基于倾斜摄影和近景摄影技术的实景三维模型结合(CC与 DPModeler结合)...
- Java 性能优化系列之3.1[JVM调优]
- 怎么用python将日期转化为数字_python实现将中文日期转换为数字日期
- fastdfs原理_搭建分布式文件系统FastDFS集群
- elasticsearch6 php,elasticsearch 6.x php-client
- java迷宫实训报告_Java综合实训报告-迷宫.doc
- amos看拟合度在哪里看_amos模型拟合度
- php mysql帮助类,基于PHP的MYSQL操作类
- python包含html5么_python-HTML(HTML5级别)