diff --git a/app/src/main/java/com/nauk/moodl/Activities/HomeActivity.java b/app/src/main/java/com/nauk/moodl/Activities/HomeActivity.java index ac966ac..283c3c2 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/HomeActivity.java +++ b/app/src/main/java/com/nauk/moodl/Activities/HomeActivity.java @@ -1,6 +1,7 @@ package com.nauk.moodl.Activities; import android.graphics.Bitmap; +import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.AppBarLayout; @@ -9,6 +10,8 @@ import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; +import android.view.Window; +import android.view.WindowManager; import com.nauk.moodl.PagerAdapter; import com.nauk.moodl.R; @@ -54,6 +57,9 @@ public class HomeActivity extends AppCompatActivity { super.onCreate(savedInstanceState); /**Interface setup**/ + Window w = getWindow(); + w.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); + w.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); //Setup main interface //requestWindowFeature(Window.FEATURE_NO_TITLE); diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyTickerList.java b/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyTickerList.java index d9ba0b2..0f4aab5 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyTickerList.java +++ b/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyTickerList.java @@ -1,5 +1,7 @@ package com.nauk.moodl.DataManagers.CurrencyData; +import android.util.Log; + import com.android.volley.Request; import com.android.volley.RequestQueue; import com.android.volley.Response; @@ -60,7 +62,15 @@ public class CurrencyTickerList { JSONObject jsonObject = new JSONObject(coinTickersHashmap.get(symbol)); tickerId = jsonObject.getString("id"); } catch (JSONException | NullPointerException e) { - e.printStackTrace(); + switch (e.getMessage()) + { + case "Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference": + Log.d("moodl", "Symbol " + symbol + " not supported"); + break; + default: + e.printStackTrace(); + break; + } } return tickerId; diff --git a/app/src/main/res/drawable/ic_mode_edit_white_24dp.xml b/app/src/main/res/drawable/ic_mode_edit_white_24dp.xml index 35a774a..9aabc58 100644 --- a/app/src/main/res/drawable/ic_mode_edit_white_24dp.xml +++ b/app/src/main/res/drawable/ic_mode_edit_white_24dp.xml @@ -1,6 +1,6 @@ + android:fitsSystemWindows="true" + tools:context="com.nauk.moodl.Activities.HomeActivity"> diff --git a/app/src/main/res/layout/fragment_watchlist_homeactivity.xml b/app/src/main/res/layout/fragment_watchlist_homeactivity.xml index 2eb2536..fbdc72b 100644 --- a/app/src/main/res/layout/fragment_watchlist_homeactivity.xml +++ b/app/src/main/res/layout/fragment_watchlist_homeactivity.xml @@ -3,11 +3,13 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" + android:fitsSystemWindows="true" android:layout_marginBottom="56dp"> + android:paddingTop="20dp"> 12sp 150dp - 180dp + 150dp 16dp 16dp 6dp