[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake-mobile/master] Made settings button invisible on open settings



commit 120c9b8898866a6b8a04106f1f33bbba049711f5
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date:   Fri Jul 24 14:19:56 2020 +0530

    Made settings button invisible on open settings
---
 app/src/main/java/org/torproject/snowflake/MainActivity.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/src/main/java/org/torproject/snowflake/MainActivity.java b/app/src/main/java/org/torproject/snowflake/MainActivity.java
index d1f6d4c..b2aa39c 100644
--- a/app/src/main/java/org/torproject/snowflake/MainActivity.java
+++ b/app/src/main/java/org/torproject/snowflake/MainActivity.java
@@ -76,9 +76,11 @@ public class MainActivity extends AppCompatActivity implements MainFragmentCallb
         if (fragment instanceof MainFragment) {
             currentFragment = FragmentConstants.MAIN_FRAGMENT;
             getSupportActionBar().setDisplayHomeAsUpEnabled(false);
+            settingsButton.setVisibility(View.VISIBLE);
         } else {
             currentFragment = FragmentConstants.APP_SETTINGS_FRAGMENT;
             getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+            settingsButton.setVisibility(View.GONE);
         }
 
         Log.d(TAG, "startFragment: " + currentFragment);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits