Fix success fragment

This commit is contained in:
ameba23
2021-08-31 12:55:18 +02:00
parent a26df1d11a
commit d81964844f
3 changed files with 9 additions and 2 deletions

View File

@@ -26,13 +26,13 @@ public class RevokeRemoteWipeSuccessFragment extends BaseFragment {
@Inject
ViewModelProvider.Factory viewModelFactory;
private ActivateRemoteWipeViewModel viewModel;
private RevokeRemoteWipeViewModel viewModel;
@Override
public void injectFragment(ActivityComponent component) {
component.inject(this);
viewModel = new ViewModelProvider(requireActivity(), viewModelFactory)
.get(ActivateRemoteWipeViewModel.class);
.get(RevokeRemoteWipeViewModel.class);
}
@Nullable

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -763,6 +763,7 @@
<!-- revoke -->
<string name="activity_name_revoke_remote_wipe">Revoke Remote Wipe</string>
<string name="revoke_remote_wipe">Revoke remote wipe status</string>
<string name="remote_wipe_revoke_success">Remote wipe status revoked</string>
<string name="button_confirm">Ok</string>
</resources>