File tree Expand file tree Collapse file tree 6 files changed +14
-10
lines changed
src/main/java/io/wookey/wallet
src/main/java/io/wookey/monero/util Expand file tree Collapse file tree 6 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,19 @@ apply plugin: 'kotlin-kapt'
55apply plugin : ' kotlinx-serialization'
66
77static def computeVersionCode () {
8- 111
8+ 112
99}
1010
1111static def computeVersionName () {
12- return " 2.0 .0"
12+ return " 2.1 .0"
1313}
1414
1515android {
16- compileSdkVersion 28
16+ compileSdkVersion 29
1717 defaultConfig {
1818 applicationId " io.wookey.wallet.monero"
1919 minSdkVersion 21
20- targetSdkVersion 28
20+ targetSdkVersion 29
2121 versionCode computeVersionCode()
2222 versionName computeVersionName()
2323// testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class AssetFragment : BaseFragment() {
8080 viewModel.openAssetDetail.observe(this , Observer { value ->
8181 value?.let {
8282 startActivity(it.apply {
83- setClass(context, AssetDetailActivity ::class .java)
83+ setClass(context!! , AssetDetailActivity ::class .java)
8484 })
8585 }
8686 })
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class MarketActivity : BaseTitleSecondActivity() {
7171 " zar"
7272 )
7373
74- private var currentCurrency = sharedPreferences().getString(" currentCurrency" , CURRENCY_LIST [0 ])
74+ private var currentCurrency = sharedPreferences().getString(" currentCurrency" , CURRENCY_LIST [0 ])? : CURRENCY_LIST [ 0 ]
7575
7676 override fun onCreate (savedInstanceState : Bundle ? ) {
7777 super .onCreate(savedInstanceState)
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ fun AppCompatActivity.copy(value: String?) {
7070 }
7171 val cmb = getSystemService(Context .CLIPBOARD_SERVICE ) as ? ClipboardManager
7272 if (cmb != null ) {
73- cmb.primaryClip = ClipData .newPlainText(null , value)
73+ cmb.setPrimaryClip( ClipData .newPlainText(null , value) )
7474 toast(R .string.copy_success)
7575 }
7676}
@@ -95,7 +95,7 @@ fun androidx.fragment.app.Fragment.copy(value: String?) {
9595 }
9696 val cmb = context!! .getSystemService(Context .CLIPBOARD_SERVICE ) as ? ClipboardManager
9797 if (cmb != null ) {
98- cmb.primaryClip = ClipData .newPlainText(null , value)
98+ cmb.setPrimaryClip( ClipData .newPlainText(null , value) )
9999 toast(R .string.copy_success)
100100 }
101101}
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22
33android {
4- compileSdkVersion 28
4+ compileSdkVersion 29
55
66 defaultConfig {
77 minSdkVersion 21
8- targetSdkVersion 28
8+ targetSdkVersion 29
99 versionCode 1
1010 versionName " 1.0"
1111
Original file line number Diff line number Diff line change @@ -113,6 +113,10 @@ static public RestoreHeight getInstance() {
113113 blockheight .put ("2020-04-01" , 2066806L );
114114 blockheight .put ("2020-05-01" , 2088411L );
115115 blockheight .put ("2020-06-01" , 2110702L );
116+ blockheight .put ("2020-07-01" , 2132318L );
117+ blockheight .put ("2020-08-01" , 2154590L );
118+ blockheight .put ("2020-09-01" , 2176790L );
119+ blockheight .put ("2020-10-01" , 2198370L );
116120 }
117121
118122 public long getHeight (String date ) {
You can’t perform that action at this time.
0 commit comments