mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 04:18:53 +01:00
Replace illustration for crash
This commit is contained in:
@@ -16,6 +16,8 @@ import javax.inject.Inject;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.lifecycle.ViewModelProvider;
|
||||
|
||||
import static org.briarproject.briar.android.util.UiUtils.hideViewOnSmallScreen;
|
||||
|
||||
@MethodsNotNullByDefault
|
||||
@ParametersNotNullByDefault
|
||||
public class CrashFragment extends BaseFragment {
|
||||
@@ -55,4 +57,9 @@ public class CrashFragment extends BaseFragment {
|
||||
return TAG;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
hideViewOnSmallScreen(requireView().findViewById(R.id.errorIcon));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="128dp"
|
||||
android:height="128dp"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M11.99,2C6.47,2 2,6.47 2,12s4.47,10 9.99,10S22,17.53 22,12 17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8zM16.18,7.76l-1.06,1.06 -1.06,-1.06L13,8.82l1.06,1.06L13,10.94 14.06,12l1.06,-1.06L16.18,12l1.06,-1.06 -1.06,-1.06 1.06,-1.06zM7.82,12l1.06,-1.06L9.94,12 11,10.94 9.94,9.88 11,8.82 9.94,7.76 8.88,8.82 7.82,7.76 6.76,8.82l1.06,1.06 -1.06,1.06zM12,14c-2.33,0 -4.31,1.46 -5.11,3.5h10.22c-0.8,-2.04 -2.78,-3.5 -5.11,-3.5z"/>
|
||||
</vector>
|
||||
25
briar-android/src/main/res/drawable/il_crash.xml
Normal file
25
briar-android/src/main/res/drawable/il_crash.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="80dp"
|
||||
android:height="80dp"
|
||||
android:viewportWidth="80"
|
||||
android:viewportHeight="80">
|
||||
<path
|
||||
android:fillColor="@color/il_border"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M40.651,76.5C60.81,76.5 77.151,60.158 77.151,40C77.151,19.842 60.81,3.5 40.651,3.5C20.493,3.5 4.151,19.842 4.151,40C4.151,60.158 20.493,76.5 40.651,76.5ZM40.651,78C61.638,78 78.651,60.987 78.651,40C78.651,19.013 61.638,2 40.651,2C19.664,2 2.651,19.013 2.651,40C2.651,60.987 19.664,78 40.651,78Z" />
|
||||
<path
|
||||
android:fillColor="@color/il_border"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M16.083,26.651C16.376,26.358 16.851,26.358 17.144,26.651L24.614,34.121L32.083,26.651C32.376,26.358 32.851,26.358 33.144,26.651C33.437,26.944 33.437,27.419 33.144,27.712L25.674,35.182L33.144,42.651C33.437,42.944 33.437,43.419 33.144,43.712C32.851,44.005 32.376,44.005 32.083,43.712L24.614,36.242L17.144,43.712C16.851,44.005 16.376,44.005 16.083,43.712C15.79,43.419 15.79,42.944 16.083,42.651L23.553,35.182L16.083,27.712C15.79,27.419 15.79,26.944 16.083,26.651Z" />
|
||||
<path
|
||||
android:fillColor="@color/il_border"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M48.159,26.651C48.452,26.358 48.927,26.358 49.22,26.651L56.689,34.121L64.159,26.651C64.452,26.358 64.927,26.358 65.22,26.651C65.513,26.944 65.513,27.419 65.22,27.712L57.75,35.182L65.22,42.651C65.513,42.944 65.513,43.419 65.22,43.712C64.927,44.005 64.452,44.005 64.159,43.712L56.689,36.242L49.22,43.712C48.927,44.005 48.452,44.005 48.159,43.712C47.866,43.419 47.866,42.944 48.159,42.651L55.629,35.182L48.159,27.712C47.866,27.419 47.866,26.944 48.159,26.651Z" />
|
||||
<path
|
||||
android:fillColor="@color/il_background"
|
||||
android:pathData="M53.713,63.403C53.713,59.938 52.337,56.616 49.888,54.167C47.438,51.717 44.116,50.341 40.651,50.341C37.187,50.341 33.865,51.717 31.415,54.167C28.965,56.616 27.589,59.938 27.589,63.403L40.651,63.403L53.713,63.403Z" />
|
||||
<path
|
||||
android:fillColor="@color/il_border"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M52.116,61.903C51.787,59.39 50.639,57.039 48.827,55.227C46.659,53.059 43.718,51.841 40.651,51.841C37.585,51.841 34.644,53.059 32.476,55.227C30.664,57.039 29.516,59.39 29.187,61.903L52.116,61.903ZM53.627,61.903C53.29,58.991 51.981,56.26 49.888,54.167C47.438,51.717 44.116,50.341 40.651,50.341C37.187,50.341 33.865,51.717 31.415,54.167C29.322,56.26 28.012,58.991 27.676,61.903C27.618,62.398 27.589,62.899 27.589,63.403L53.713,63.403C53.713,62.899 53.684,62.398 53.627,61.903Z" />
|
||||
</vector>
|
||||
@@ -30,7 +30,7 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.25"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:srcCompat="@drawable/ic_crash"
|
||||
app:srcCompat="@drawable/il_crash"
|
||||
app:tint="?attr/colorControlNormal"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user