X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Factivities%2FLogcatActivity.java;h=78d203dac4f8b28ec6370294f0f585122db90c6a;hp=8e54bb43a119d6e16c5d9e425d1d0e2854650f6b;hb=cd609c9888924549c03cd6509ed889cdb052d5bb;hpb=f4126c24a54f9af846371bb1515e072a818060c1 diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/LogcatActivity.java b/app/src/main/java/com/stoutner/privacybrowser/activities/LogcatActivity.java index 8e54bb43..78d203da 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/LogcatActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/LogcatActivity.java @@ -72,8 +72,9 @@ public class LogcatActivity extends AppCompatActivity implements SaveDialog.Save // Get a handle for the shared preferences. SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this); - // Get the screenshot preference. + // Get the preferences. boolean allowScreenshots = sharedPreferences.getBoolean(getString(R.string.allow_screenshots_key), false); + boolean bottomAppBar = sharedPreferences.getBoolean(getString(R.string.bottom_app_bar_key), false); // Disable screenshots if not allowed. if (!allowScreenshots) { @@ -87,7 +88,11 @@ public class LogcatActivity extends AppCompatActivity implements SaveDialog.Save super.onCreate(savedInstanceState); // Set the content view. - setContentView(R.layout.logcat_coordinatorlayout); + if (bottomAppBar) { + setContentView(R.layout.logcat_coordinatorlayout_bottom_appbar); + } else { + setContentView(R.layout.logcat_coordinatorlayout_top_appbar); + } // Get handles for the views. Toolbar toolbar = findViewById(R.id.logcat_toolbar);