Minor fixs
- Icon size fix - Fix details activity crash
This commit is contained in:
parent
dd9f4d2141
commit
2654b044b2
@ -9,6 +9,7 @@ import android.support.annotation.Nullable;
|
|||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
import android.text.method.LinkMovementMethod;
|
import android.text.method.LinkMovementMethod;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@ -74,14 +75,15 @@ public class InformationFragment extends Fragment {
|
|||||||
{
|
{
|
||||||
if(isTickerUpdated && isSnapshotUpdated)
|
if(isTickerUpdated && isSnapshotUpdated)
|
||||||
{
|
{
|
||||||
if(getActivity() != null)
|
try {
|
||||||
{
|
|
||||||
getActivity().runOnUiThread(new Runnable() {
|
getActivity().runOnUiThread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
refreshInfoTab();
|
refreshInfoTab();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
Log.d("moodl", "Information tab do not needs to be updated anymore");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -553,7 +553,7 @@ public class Summary extends Fragment implements BalanceSwitchManagerInterface,
|
|||||||
public void onBalanceDataUpdated() {
|
public void onBalanceDataUpdated() {
|
||||||
final List<Currency> balance = balanceManager.getTotalBalance();
|
final List<Currency> balance = balanceManager.getTotalBalance();
|
||||||
|
|
||||||
if(balance.size() > 0)
|
if(balance != null && balance.size() > 0)
|
||||||
{
|
{
|
||||||
for(int i = 0; i < balance.size(); i++)
|
for(int i = 0; i < balance.size(); i++)
|
||||||
{
|
{
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/currencyIcon"
|
android:id="@+id/currencyIcon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/currency_icon_cardview_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/currency_icon_cardview_size"
|
||||||
android:layout_margin="1dp" />
|
android:layout_margin="1dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -49,8 +49,8 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/currencyIcon"
|
android:id="@+id/currencyIcon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/currency_icon_cardview_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/currency_icon_cardview_size"
|
||||||
android:layout_margin="1dp" />
|
android:layout_margin="1dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/currencyIcon"
|
android:id="@+id/currencyIcon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/currency_icon_cardview_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/currency_icon_cardview_size"
|
||||||
android:layout_margin="1dp" />
|
android:layout_margin="1dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -51,8 +51,8 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/currencyIcon"
|
android:id="@+id/currencyIcon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/currency_icon_cardview_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/currency_icon_cardview_size"
|
||||||
android:layout_margin="1dp" />
|
android:layout_margin="1dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/mainMenuLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
@ -128,7 +129,7 @@
|
|||||||
android:paddingEnd="4dp"
|
android:paddingEnd="4dp"
|
||||||
android:baselineAligned="false"
|
android:baselineAligned="false"
|
||||||
android:gravity="bottom"
|
android:gravity="bottom"
|
||||||
android:layout_alignParentBottom="true">
|
android:layout_below="@id/mainMenuLayout">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -21,4 +21,6 @@
|
|||||||
<dimen name="double_toolbarSpinner_size">180dp</dimen>
|
<dimen name="double_toolbarSpinner_size">180dp</dimen>
|
||||||
|
|
||||||
<dimen name="spinner_toolbar_height">50dp</dimen>
|
<dimen name="spinner_toolbar_height">50dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="currency_icon_cardview_size">17dp</dimen>
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user