Skip to content

Commit 34548fa

Browse files
author
371718330@qq.com
committed
增加测试用例
1 parent 1388ecb commit 34548fa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package com.jingewenku.abrahamcaijin.commonutillibrary;
22

3-
import android.support.v7.app.AppCompatActivity;
43
import android.os.Bundle;
4+
import android.support.v7.app.AppCompatActivity;
55
import android.view.View;
66
import android.view.View.OnClickListener;
77
import android.widget.TextView;
8+
import com.jingewenku.abrahamcaijin.commonutil.AppSharePreferenceMgr;
89
import com.jingewenku.abrahamcaijin.commonutil.AppToastMgr;
910

1011
public class MainActivity extends AppCompatActivity {
@@ -18,7 +19,8 @@ protected void onCreate(Bundle savedInstanceState) {
1819
txtShow.setOnClickListener(new OnClickListener() {
1920
@Override
2021
public void onClick(View v) {
21-
AppToastMgr.shortToast(MainActivity.this, "显示测试成功");
22+
AppSharePreferenceMgr.put(MainActivity.this, "test", "显示测试用例");
23+
AppToastMgr.shortToast(MainActivity.this, AppSharePreferenceMgr.get(MainActivity.this, "test", "显示测试用例") + "" );
2224
}
2325
});
2426
}

0 commit comments

Comments
 (0)