Hide beta switch

pull/210/head
M66B 2 years ago
parent 1ca4d59e7c
commit 3373771682

@ -239,6 +239,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
private Group grpVirusTotal; private Group grpVirusTotal;
private Group grpSend; private Group grpSend;
private Group grpUpdates; private Group grpUpdates;
private Group grpBitbucket;
private Group grpTest; private Group grpTest;
private CardView cardDebug; private CardView cardDebug;
@ -455,6 +456,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
grpVirusTotal = view.findViewById(R.id.grpVirusTotal); grpVirusTotal = view.findViewById(R.id.grpVirusTotal);
grpSend = view.findViewById(R.id.grpSend); grpSend = view.findViewById(R.id.grpSend);
grpUpdates = view.findViewById(R.id.grpUpdates); grpUpdates = view.findViewById(R.id.grpUpdates);
grpBitbucket = view.findViewById(R.id.grpBitbucket);
grpTest = view.findViewById(R.id.grpTest); grpTest = view.findViewById(R.id.grpTest);
cardDebug = view.findViewById(R.id.cardDebug); cardDebug = view.findViewById(R.id.cardDebug);
@ -1912,6 +1914,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
grpUpdates.setVisibility(!BuildConfig.DEBUG && grpUpdates.setVisibility(!BuildConfig.DEBUG &&
(Helper.isPlayStoreInstall() || !Helper.hasValidFingerprint(getContext())) (Helper.isPlayStoreInstall() || !Helper.hasValidFingerprint(getContext()))
? View.GONE : View.VISIBLE); ? View.GONE : View.VISIBLE);
grpBitbucket.setVisibility(View.GONE);
grpTest.setVisibility(BuildConfig.TEST_RELEASE ? View.VISIBLE : View.GONE); grpTest.setVisibility(BuildConfig.TEST_RELEASE ? View.VISIBLE : View.GONE);
setLastCleanup(prefs.getLong("last_cleanup", -1)); setLastCleanup(prefs.getLong("last_cleanup", -1));

@ -622,7 +622,6 @@
android:layout_marginStart="12dp" android:layout_marginStart="12dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:text="@string/title_advanced_beta" android:text="@string/title_advanced_beta"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swWeekly" app:layout_constraintTop_toBottomOf="@id/swWeekly"
@ -779,7 +778,13 @@
android:id="@+id/grpUpdates" android:id="@+id/grpUpdates"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="0dp" android:layout_height="0dp"
app:constraint_referenced_ids="swUpdates,tvGithubPrivacy,swWeekly,swBeta,tvBitBucketPrivacy" /> app:constraint_referenced_ids="swUpdates,tvGithubPrivacy,swWeekly" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpBitbucket"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="swBeta,tvBitBucketPrivacy" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>

Loading…
Cancel
Save