}
}
- // Clear the cache and history if Incognito Mode is enabled.
+ // Clear the cache, history, and logcat if Incognito Mode is enabled.
if (incognitoModeEnabled) {
// Clear the cache. `true` includes disk files.
nestedScrollWebView.clearCache(true);
// Delete the secondary `Service Worker` cache directory.
// A `String[]` must be used because the directory contains a space and `Runtime.exec` will not escape the string correctly otherwise.
Runtime.getRuntime().exec(new String[]{"rm", "-rf", privateDataDirectoryString + "/app_webview/Service Worker/"});
- } catch (IOException e) {
+ } catch (IOException exception) {
// Do nothing if an error is thrown.
}
+
+ // Clear the logcat.
+ try {
+ // Clear the logcat. `-c` clears the logcat. `-b all` clears all the buffers (instead of just crash, main, and system).
+ Runtime.getRuntime().exec("logcat -b all -c");
+ } catch (IOException exception) {
+ // Do nothing.
+ }
}
// Get the current page position.
android:layout_width="100dp"
android:gravity="center_vertical"
android:text="@string/new_tab"
+ android:textColor="?android:textColorPrimary"
android:maxLines="2"
android:ellipsize="end" />
</LinearLayout>
\ No newline at end of file
<item name="redTextColor">@color/red_900</item>
<!-- Tints. -->
- <item name="addTabIconTintColor">@color/gray_400</item>
+ <item name="addTabIconTintColor">@color/white</item>
<item name="domainSettingsIconTintColor">@color/violet_500</item>
<item name="fabIconTintColor">@color/gray_875</item>
<item name="findOnPageIconTintColor">@color/violet_500</item>
<item name="redTextColor">@color/red_900</item>
<!-- Tints. -->
- <item name="addTabIconTintColor">@color/gray_400</item>
+ <item name="addTabIconTintColor">@color/white</item>
<item name="domainSettingsIconTintColor">@color/violet_500</item>
<item name="fabIconTintColor">@color/gray_875</item>
<item name="findOnPageIconTintColor">@color/violet_500</item>
<color name="gray_850">#FF313131</color>
<color name="gray_875">#FF2D2D2D</color>
<color name="gray_900">#FF212121</color>
+ <color name="gray_925">#FF202020</color>
<color name="green_50">#FFE8F5E9</color>
<color name="green_100">#FFC8E6C9</color>
<item name="redTextColor">@color/red_900</item>
<!-- Tints. -->
- <item name="addTabIconTintColor">@color/gray_400</item>
+ <item name="addTabIconTintColor">@color/white</item>
<item name="domainSettingsIconTintColor">@color/violet_500</item>
<item name="fabIconTintColor">@color/gray_875</item>
<item name="findOnPageIconTintColor">@color/violet_500</item>
<item name="redTextColor">@color/red_a700</item>
<!-- Tints. -->
- <item name="addTabIconTintColor">@color/gray_700</item>
+ <item name="addTabIconTintColor">@color/gray_925</item>
<item name="domainSettingsIconTintColor">@color/blue_800</item>
<item name="fabIconTintColor">@color/white</item>
<item name="findOnPageIconTintColor">@color/blue_800</item>
<item name="redTextColor">@color/red_a700</item>
<!-- Tints. -->
- <item name="addTabIconTintColor">@color/gray_700</item>
+ <item name="addTabIconTintColor">@color/gray_925</item>
<item name="domainSettingsIconTintColor">@color/blue_800</item>
<item name="fabIconTintColor">@color/white</item>
<item name="findOnPageIconTintColor">@color/blue_800</item>
<color name="gray_850">#FF313131</color>
<color name="gray_875">#FF2D2D2D</color>
<color name="gray_900">#FF212121</color>
+ <color name="gray_925">#FF202020</color>
<color name="green_50">#FFE8F5E9</color>
<color name="green_100">#FFC8E6C9</color>
<item name="redTextColor">@color/red_a700</item>
<!-- Tints. -->
- <item name="addTabIconTintColor">@color/gray_700</item>
+ <item name="addTabIconTintColor">@color/gray_925</item>
<item name="domainSettingsIconTintColor">@color/blue_800</item>
<item name="fabIconTintColor">@color/white</item>
<item name="findOnPageIconTintColor">@color/blue_800</item>