mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Fix a bunch of random lint warnings.
This commit is contained in:
committed by
Nicholas Tinsley
parent
ce4b7c2d7f
commit
6922886395
@@ -3,6 +3,7 @@ package org.thoughtcrime.securesms.safety
|
||||
import android.content.Context
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.FragmentManager
|
||||
import org.signal.core.util.getParcelableCompat
|
||||
import org.thoughtcrime.securesms.contacts.paged.ContactSearchKey
|
||||
import org.thoughtcrime.securesms.conversation.ui.error.SafetyNumberChangeDialog
|
||||
import org.thoughtcrime.securesms.database.model.IdentityRecord
|
||||
@@ -126,7 +127,7 @@ object SafetyNumberBottomSheet {
|
||||
* @throws IllegalArgumentException if the bundle does not contain the correct parcelized arguments.
|
||||
*/
|
||||
fun getArgsFromBundle(bundle: Bundle): SafetyNumberBottomSheetArgs {
|
||||
val args = bundle.getParcelable<SafetyNumberBottomSheetArgs>(ARGS)
|
||||
val args: SafetyNumberBottomSheetArgs? = bundle.getParcelableCompat(ARGS, SafetyNumberBottomSheetArgs::class.java)
|
||||
Preconditions.checkArgument(args != null)
|
||||
return args!!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user