Skip to content

Commit fb46839

Browse files
authored
Updated to 1.5.2.1
Merge pull request #47 from TrueMLGPro/pre-1.5.2.1-hotfix
2 parents c923e47 + b00585f commit fb46839

File tree

6 files changed

+35
-12
lines changed

6 files changed

+35
-12
lines changed

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ android {
2121
applicationId "com.truemlgpro.wifiinfo"
2222
minSdkVersion 21
2323
targetSdkVersion 33
24-
versionCode 1520
25-
versionName "1.5.2"
24+
versionCode 1521
25+
versionName "1.5.2.1"
2626
}
2727
buildTypes {
2828
release {

app/src/main/java/com/truemlgpro/wifiinfo/RouterSetupActivity.java

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import android.webkit.WebView;
1919
import android.webkit.WebViewClient;
2020
import android.widget.EditText;
21+
import android.widget.LinearLayout;
2122
import android.widget.ProgressBar;
2223
import android.widget.TextView;
2324
import android.widget.Toast;
@@ -34,7 +35,9 @@
3435

3536
public class RouterSetupActivity extends AppCompatActivity {
3637
private Toolbar toolbar;
38+
private LinearLayout textview_nonetworkconn_container;
3739
private TextView textview_nonetworkconn;
40+
private LinearLayout webview_container;
3841
private WebView webview_main;
3942
private ProgressBar progressBarLoading;
4043
private SwipeRefreshLayout swipeRefresh;
@@ -64,7 +67,9 @@ protected void onCreate(Bundle savedInstanceState)
6467
setContentView(R.layout.router_setup_activity);
6568

6669
toolbar = (Toolbar) findViewById(R.id.toolbar);
70+
textview_nonetworkconn_container = (LinearLayout) findViewById(R.id.textview_nonetworkconn_container);
6771
textview_nonetworkconn = (TextView) findViewById(R.id.textview_nonetworkconn);
72+
webview_container = (LinearLayout) findViewById(R.id.webview_container);
6873
webview_main = (WebView) findViewById(R.id.webview_main);
6974
progressBarLoading = (ProgressBar) findViewById(R.id.progressBarLoading);
7075
swipeRefresh = (SwipeRefreshLayout) findViewById(R.id.swipe_refresh);
@@ -275,15 +280,19 @@ public void checkNetworkConnectivity() {
275280
}
276281

277282
public void showWidgets() {
283+
webview_container.setVisibility(View.VISIBLE);
278284
webview_main.setVisibility(View.VISIBLE);
279285
swipeRefresh.setVisibility(View.VISIBLE);
286+
textview_nonetworkconn_container.setVisibility(View.GONE);
280287
textview_nonetworkconn.setVisibility(View.GONE);
281288
}
282289

283290
public void hideWidgets() {
291+
webview_container.setVisibility(View.GONE);
284292
webview_main.setVisibility(View.GONE);
285293
progressBarLoading.setVisibility(View.GONE);
286294
swipeRefresh.setVisibility(View.GONE);
295+
textview_nonetworkconn_container.setVisibility(View.VISIBLE);
287296
textview_nonetworkconn.setVisibility(View.VISIBLE);
288297
}
289298

app/src/main/java/com/truemlgpro/wifiinfo/URLtoIPActivity.java

+2
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ public void checkNetworkConnectivity(Boolean calledFromToolbarAction) {
188188
}
189189

190190
public void showWidgets() {
191+
url_to_ip_scroll.setVisibility(View.VISIBLE);
191192
textview_ipFromURL.setVisibility(View.VISIBLE);
192193
mTextInputLayout.setVisibility(View.VISIBLE);
193194
mEditText.setVisibility(View.VISIBLE);
@@ -196,6 +197,7 @@ public void showWidgets() {
196197
}
197198

198199
public void hideWidgets() {
200+
url_to_ip_scroll.setVisibility(View.GONE);
199201
textview_ipFromURL.setVisibility(View.GONE);
200202
mTextInputLayout.setVisibility(View.GONE);
201203
mEditText.setVisibility(View.GONE);

app/src/main/java/com/truemlgpro/wifiinfo/WhoIsToolActivity.java

+2
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ public void checkNetworkConnectivity(Boolean calledFromToolbarAction) {
262262
}
263263

264264
public void showWidgets() {
265+
who_is_scroll.setVisibility(View.VISIBLE);
265266
textview_who_is_results.setVisibility(View.VISIBLE);
266267
input_layout.setVisibility(View.VISIBLE);
267268
edittext_main.setVisibility(View.VISIBLE);
@@ -270,6 +271,7 @@ public void showWidgets() {
270271
}
271272

272273
public void hideWidgets() {
274+
who_is_scroll.setVisibility(View.GONE);
273275
textview_who_is_results.setVisibility(View.GONE);
274276
input_layout.setVisibility(View.GONE);
275277
edittext_main.setVisibility(View.GONE);

app/src/main/res/layout/router_setup_activity.xml

+18-10
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,23 @@
1717
app:titleTextColor="?attr/TitleTextColor"
1818
app:subtitleTextColor="?attr/SubtitleTextColor" />
1919

20-
<TextView
21-
android:id="@+id/textview_nonetworkconn"
22-
android:layout_width="wrap_content"
23-
android:layout_height="wrap_content"
24-
android:layout_margin="16dp"
25-
android:textSize="18sp"
26-
android:textColor="?TextColor"
27-
android:layout_gravity="center"
28-
android:visibility="gone"
29-
android:text="No Connection" />
20+
<LinearLayout
21+
android:id="@+id/textview_nonetworkconn_container"
22+
android:layout_width="match_parent"
23+
android:layout_height="match_parent"
24+
android:gravity="center"
25+
android:visibility="gone">
26+
27+
<TextView
28+
android:id="@+id/textview_nonetworkconn"
29+
android:layout_width="wrap_content"
30+
android:layout_height="wrap_content"
31+
android:textSize="18sp"
32+
android:textColor="?TextColor"
33+
android:visibility="gone"
34+
android:text="No Wi-Fi Connection" />
35+
36+
</LinearLayout>
3037

3138
<ProgressBar
3239
android:id="@+id/progressBarLoading"
@@ -37,6 +44,7 @@
3744
android:visibility="gone" />
3845

3946
<LinearLayout
47+
android:id="@+id/webview_container"
4048
android:layout_width="match_parent"
4149
android:layout_height="wrap_content"
4250
android:gravity="center"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed some widgets in `URLToIPActivity` and `WhoIsToolActivity` not getting hidden if there was no network connection
2+
Fixed `No Wi-Fi Connection` text alignment in `RouterSetupActivity`

0 commit comments

Comments
 (0)