Diff of /app/src/main/java/com/codesys/forge/MainActivity.java [a9ba7b] .. [6880df]  Maximize  Restore

Switch to side-by-side view

--- a/app/src/main/java/com/codesys/forge/MainActivity.java
+++ b/app/src/main/java/com/codesys/forge/MainActivity.java
@@ -58,10 +58,12 @@
 import android.os.AsyncTask;
 import android.net.ConnectivityManager;
 import android.net.NetworkInfo;
+import android.widget.TextView;
 import android.widget.Toast;
 
 
 import com.google.android.material.bottomnavigation.BottomNavigationView;
+import com.google.android.material.bottomnavigation.LabelVisibilityMode;
 
 
 public class MainActivity extends AppCompatActivity implements SwipeRefreshLayout.OnRefreshListener {
@@ -238,6 +240,9 @@
         else if (currentURL.contains("forge/talk")) {
             id = 3;
         }
+        else if (currentURL.contains("forge/product-news")) {
+            id = 4;
+        }
         NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
         notificationManager.cancel(id);
     }
@@ -254,6 +259,9 @@
         }
         else if (currentURL.contains("forge/talk")) {
             menuItem = (MenuItem) menuNav.findItem(R.id.talk);
+        }
+        else if (currentURL.contains("forge/product-news")) {
+            menuItem = (MenuItem) menuNav.findItem(R.id.productnews);
         }
         if (menuItem != null)
             menuItem.setChecked(true);
@@ -578,6 +586,16 @@
         //
         bottomnav = findViewById(R.id.bottomNavigationView);
         bottomnav.setOnNavigationItemSelectedListener(navListener);
+        bottomnav.setLabelVisibilityMode(LabelVisibilityMode.LABEL_VISIBILITY_LABELED);
+        TextView textView;
+        textView = ((TextView) bottomnav.findViewById(R.id.community).findViewById(R.id.largeLabel));
+        textView.setTextSize(12);
+        textView = ((TextView) bottomnav.findViewById(R.id.news).findViewById(R.id.largeLabel));
+        textView.setTextSize(12);
+        textView = ((TextView) bottomnav.findViewById(R.id.talk).findViewById(R.id.largeLabel));
+        textView.setTextSize(12);
+        textView = ((TextView) bottomnav.findViewById(R.id.productnews).findViewById(R.id.largeLabel));
+        textView.setTextSize(12);
         ReLoadWebView(currentURL);
     }
 
@@ -651,6 +669,9 @@
                         case R.id.talk:
                             loadUrl("https://forge.codesys.com/forge/talk", "Talk");
                             break;
+                        case R.id.productnews:
+                            loadUrl("https://forge.codesys.com/forge/product-news", "Talk");
+                            break;
                     }
                     menuItem.setChecked(true);