This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package ng.chaka.android.home.tabs.explore.ui | |
| import android.os.Bundle | |
| import android.os.Handler | |
| import android.view.View | |
| import android.widget.Toast | |
| import androidx.lifecycle.Observer | |
| import androidx.lifecycle.ViewModelProvider | |
| import androidx.recyclerview.widget.LinearLayoutManager | |
| import androidx.recyclerview.widget.RecyclerView |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2020-02-22 11:24:16.336 4935-4935/ng.chaka.android.debug E/AndroidRuntime: FATAL EXCEPTION: main | |
| Process: ng.chaka.android.debug, PID: 4935 | |
| java.util.IllegalFormatConversionException: f != java.lang.Integer | |
| at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4402) | |
| at java.util.Formatter$FormatSpecifier.printFloat(Formatter.java:2897) | |
| at java.util.Formatter$FormatSpecifier.print(Formatter.java:2844) | |
| at java.util.Formatter.format(Formatter.java:2523) | |
| at java.util.Formatter.format(Formatter.java:2458) | |
| at java.lang.String.format(String.java:2842) | |
| at ng.chaka.android.home.compnents.WatchListViewAdapter$Holder.displayStats(WatchListView.kt:193) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package ng.chaka.android.stocks.ui | |
| import android.annotation.SuppressLint | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.os.Bundle | |
| import android.text.Editable | |
| import android.text.TextWatcher | |
| import android.widget.RadioButton | |
| import android.widget.RadioGroup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| setupAppbar() | |
| val symbol = intent.getStringExtra(SYMBOL_KEY) ?: throw IllegalArgumentException() | |
| isSellForm = intent.getBooleanExtra(SELL_KEY, false) | |
| buyStockButton.setText(if (isSellForm) R.string.action_sell_stock else R.string.action_buy_stock) | |
| categoryStockViewModel.tags = symbol | |
| radioButtonByText = indexRadioButtonChildren() | |
| fetchContent() |