diff --git a/app/app.iml b/app/app.iml
index 4c1ac093..9449018a 100644
--- a/app/app.iml
+++ b/app/app.iml
@@ -100,6 +100,7 @@
+
diff --git a/app/src/main/java/eu/faircode/netguard/ActivityMain.java b/app/src/main/java/eu/faircode/netguard/ActivityMain.java
index 03331d68..e44817be 100644
--- a/app/src/main/java/eu/faircode/netguard/ActivityMain.java
+++ b/app/src/main/java/eu/faircode/netguard/ActivityMain.java
@@ -64,8 +64,9 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
private static final String TAG = "NetGuard.Main";
private boolean running = false;
- private SwitchCompat swEnabled;
+ private ImageView ivIcon;
private ImageView ivQueue;
+ private SwitchCompat swEnabled;
private ImageView ivMetered;
private SwipeRefreshLayout swipeRefresh;
private AdapterRule adapter = null;
@@ -126,9 +127,9 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
// Action bar
final View actionView = getLayoutInflater().inflate(R.layout.actionmain, null, false);
- ImageView ivIcon = (ImageView) actionView.findViewById(R.id.ivIcon);
- swEnabled = (SwitchCompat) actionView.findViewById(R.id.swEnabled);
+ ivIcon = (ImageView) actionView.findViewById(R.id.ivIcon);
ivQueue = (ImageView) actionView.findViewById(R.id.ivQueue);
+ swEnabled = (SwitchCompat) actionView.findViewById(R.id.swEnabled);
ivMetered = (ImageView) actionView.findViewById(R.id.ivMetered);
// Icon, no title
@@ -517,7 +518,8 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
Log.i(TAG, "Received " + intent);
Util.logExtras(intent);
int size = intent.getIntExtra(EXTRA_SIZE, -1);
- ivQueue.setVisibility(size == 0 ? View.INVISIBLE : View.VISIBLE);
+ ivIcon.setVisibility(size == 0 ? View.VISIBLE : View.GONE);
+ ivQueue.setVisibility(size == 0 ? View.GONE : View.VISIBLE);
}
};
diff --git a/app/src/main/res/layout/actionmain.xml b/app/src/main/res/layout/actionmain.xml
index e27d8017..e0d89056 100644
--- a/app/src/main/res/layout/actionmain.xml
+++ b/app/src/main/res/layout/actionmain.xml
@@ -6,10 +6,20 @@
+
+
+ android:layout_marginLeft="4dp"
+ android:layout_marginRight="4dp"
+ android:src="@drawable/ic_hourglass_empty_white_24dp"
+ android:visibility="gone" />
-
-
\ No newline at end of file