File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
src/main/java/com/rae/cnblogs Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 19
19
import android .widget .ImageView ;
20
20
import android .widget .TextView ;
21
21
22
+ import com .rae .cnblogs .AppUI ;
22
23
import com .rae .cnblogs .R ;
23
24
import com .rae .cnblogs .adapter .BaseItemAdapter ;
24
25
import com .rae .cnblogs .adapter .SearchSuggestionAdapter ;
@@ -242,6 +243,11 @@ public void onSearchClick() {
242
243
* 执行搜索
243
244
*/
244
245
private void preformSearch () {
246
+ if (true ) {
247
+ AppUI .toastInCenter (getContext (), "我是热更新" );
248
+ return ;
249
+ }
250
+
245
251
// 弹下键盘
246
252
InputMethodManager imm = (InputMethodManager ) getContext ().getSystemService (Context .INPUT_METHOD_SERVICE );
247
253
if (imm != null ) {
Original file line number Diff line number Diff line change 9
9
import java .util .List ;
10
10
import java .util .concurrent .TimeUnit ;
11
11
12
+ import io .reactivex .android .schedulers .AndroidSchedulers ;
12
13
import io .reactivex .annotations .NonNull ;
13
14
import io .reactivex .disposables .Disposable ;
14
15
import io .reactivex .functions .Consumer ;
@@ -45,6 +46,8 @@ public void accept(@NonNull Disposable disposable) throws Exception {
45
46
})
46
47
// 延迟,避免响应过快 fix bug #717
47
48
.delay (300 , TimeUnit .MILLISECONDS )
49
+ // 切换回到主线程
50
+ .observeOn (AndroidSchedulers .mainThread ())
48
51
.subscribe (new ApiDefaultObserver <List <String >>() {
49
52
@ Override
50
53
protected void onError (String message ) {
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ def bakPath = file("F:\\rae\\cnblosApp\\v1.1.1\\bakApk\\")
5
5
/**
6
6
* 此处填写每次构建生成的基准包目录
7
7
*/
8
- def baseApkDir = " app-0907-00-00-32 "
9
- def apkName = " app-dev -release.apk"
8
+ def baseApkDir = " app-1120-10-42-06 "
9
+ def apkName = " app-xiaomi -release.apk"
10
10
11
11
/**
12
12
* 对于插件各参数的详细解析请参考
@@ -36,12 +36,12 @@ tinkerSupport {
36
36
37
37
// 构建基准包和补丁包都要指定不同的tinkerId,并且必须保证唯一性
38
38
// 基类版本:cnblogs-basic-1.1.0
39
- // 补丁版本:cnblogs-path -1.0.0-001
40
- tinkerId = " cnblogs-basic-1.1.1"
41
- // tinkerId = "cnblogs-path -1.0.0-001 "
39
+ // 补丁版本:cnblogs-patch -1.1.1.01
40
+ // tinkerId = "cnblogs-basic-1.1.1"
41
+ tinkerId = " cnblogs-patch -1.1.1.01 "
42
42
43
43
// 构建多渠道补丁时使用
44
- // buildAllFlavorsDir = "${bakPath}/${baseApkDir}"
44
+ buildAllFlavorsDir = " ${ bakPath} /${ baseApkDir} "
45
45
46
46
// 是否启用加固模式,默认为false.(tinker-spport 1.0.7起支持)
47
47
// isProtectedApp = true
You can’t perform that action at this time.
0 commit comments