Skip to content

Commit 4e0afcd

Browse files
author
371718330@qq.com
committed
增加测试用例
1 parent 4e4fdd2 commit 4e0afcd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/com/jingewenku/abrahamcaijin/commonutillibrary/MainActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ protected void onCreate(Bundle savedInstanceState) {
2020
@Override
2121
public void onClick(View v) {
2222
AppSharePreferenceMgr.put(MainActivity.this, "test", "显示测试用例");
23-
AppToastMgr.shortToast(MainActivity.this, AppSharePreferenceMgr.get(MainActivity.this, "test", "显示测试用例") + "" );
23+
if (AppSharePreferenceMgr.contains(MainActivity.this, "test")) {
24+
AppToastMgr.shortToast(MainActivity.this, AppSharePreferenceMgr.get(MainActivity.this, "test", "") + "");
25+
}
2426
}
2527
});
2628
}

0 commit comments

Comments
 (0)