[tor-commits] [snowflake-mobile/master] Made settings button invisible on open settings
cohosh at torproject.org
cohosh at torproject.org
Mon Aug 10 16:49:27 UTC 2020
commit 120c9b8898866a6b8a04106f1f33bbba049711f5
Author: Hashik Donthineni <HashikDonthineni at gmail.com>
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);
More information about the tor-commits
mailing list