Don't show storage pop-up if setup is not complete

b/22467756

Change-Id: I0288f5817d4187dd24bed6a206b66c890c815f06
diff --git a/Settings/src/com/android/tv/settings/device/storage/NewStorageActivity.java b/Settings/src/com/android/tv/settings/device/storage/NewStorageActivity.java
index e5b1783..9a313da 100644
--- a/Settings/src/com/android/tv/settings/device/storage/NewStorageActivity.java
+++ b/Settings/src/com/android/tv/settings/device/storage/NewStorageActivity.java
@@ -30,6 +30,7 @@
 import android.os.storage.StorageManager;
 import android.os.storage.VolumeInfo;
 import android.os.storage.VolumeRecord;
+import android.provider.Settings;
 import android.support.annotation.NonNull;
 import android.support.v17.leanback.widget.GuidanceStylist;
 import android.support.v17.leanback.widget.GuidedAction;
@@ -264,6 +265,12 @@
                 return;
             }
 
+            if (Settings.Secure.getInt(context.getContentResolver(),
+                    Settings.Secure.USER_SETUP_COMPLETE, 0) == 0) {
+                Log.d(TAG, "Ignoring storage notification: setup not complete");
+                return;
+            }
+
             mStorageManager = context.getSystemService(StorageManager.class);
 
             if (TextUtils.equals(intent.getAction(), VolumeInfo.ACTION_VOLUME_STATE_CHANGED)) {