解决:彩信,加入了有效联系人和编辑了主题,按返回键,提示信息存为草稿,但实际未储存
【測试步骤】新建彩信加入有效联系人及主题。按返回键
【測试结果】提示信息已存为草稿,实际未储存
【预期结果】正常存为草稿
分析:
该Bug是因为清单文件里设置的Activity启动模式引起。
原始文件里的启动模式为singleTop:
该启动模式为,当跳转的对象是位于栈顶的activity(应该能够理解为用户眼前所示activity)时。程序将不会生成一个新的activity实例,而是直接跳到现存于栈顶的那个activity实例。
google原始代码为:
<activity android:name=".ui.ComposeMessageActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:windowSoftInputMode="stateHidden|adjustResize"
android:theme="@style/MmsHoloTheme"
android:parentActivityName=".ui.ConversationList"
android:launchMode="singleTop" >
改动后:
<activity android:name=".ui.ComposeMessageActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:windowSoftInputMode="stateHidden|adjustResize"
android:theme="@style/MmsHoloTheme"
android:parentActivityName=".ui.ConversationList"
android:launchMode="singleTask" >
相关文章
- 解决360浏览器兼容模式的页面显示问题
- Delphi 解决StrToDateTime()不是有效日期类型的问题
- phpMyAdmin提示:配置文件权限错误,无法写入!解决方法
- 掌握4个有效的数据分析要点,切实解决用户痛点
- 宝塔面板的ftp无法使用解决
- 成功解决TypeError: data type ‘category‘ not understood
- 成功解决pandas.core.indexing.IndexingError: Too many indexers
- 成功解决absl.flags._exceptions.IllegalFlagValueError: flag --train_size=inf: Expect argument to be a str
- 成功解决matplotlibaxes_axes.py:6462: UserWarning: The 'normed' kwarg is deprecated, and has been repla
- 已解决selenium模块利用performance获取network日志请求报错(亲测有效)
- 【MATLAB】解决MATLAB安装后出现 “License Manager Error -8”(亲测有效)
- UnicodeEncodeError: ‘gbk‘ codec can‘t encode character 的解决方法
- 全网多种方法解决在请求目标中找到无效字符。有效字符在RFC 7230和RFC 3986中定义的错误
- 解决 No active profile set, falling back to 1 default profile: “default“问题以及如何查看spring boot版本号
- 解决python -m pip install --upgrade pip 升级不成功问题
- 解决Java8 分组groupingBy 后排序不变的问题