Skip to content

Commit 35bbb7b

Browse files
committed
enable and fix non-transitive R Classes (nonTransitiveRClass)
1 parent 9252df3 commit 35bbb7b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

app/src/main/java/com/stevesoltys/seedvault/restore/FilesSelectionFragment.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ internal class FilesSelectionFragment : FileSelectionFragment() {
2727
savedInstanceState: Bundle?,
2828
): View {
2929
val v = super.onCreateView(inflater, container, savedInstanceState)
30-
val topStub: ViewStub = v.requireViewById(R.id.topStub)
30+
val topStub: ViewStub = v.requireViewById(org.calyxos.backup.storage.R.id.topStub)
3131
topStub.layoutResource = R.layout.header_files_selection
3232
topStub.inflate()
33-
val bottomStub: ViewStub = v.requireViewById(R.id.bottomStub)
33+
val bottomStub: ViewStub = v.requireViewById(org.calyxos.backup.storage.R.id.bottomStub)
3434
bottomStub.layoutResource = R.layout.footer_files_selection
3535
button = bottomStub.inflate() as Button
3636
button.setOnClickListener {

app/src/main/java/com/stevesoltys/seedvault/restore/RestoreFilesFragment.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ internal class RestoreFilesFragment : SnapshotFragment() {
2929
): View {
3030
val v = super.onCreateView(inflater, container, savedInstanceState)
3131

32-
val topStub: ViewStub = v.requireViewById(R.id.topStub)
32+
val topStub: ViewStub = v.requireViewById(org.calyxos.backup.storage.R.id.topStub)
3333
topStub.layoutResource = R.layout.header_snapshots
3434
topStub.inflate()
3535

36-
val bottomStub: ViewStub = v.requireViewById(R.id.bottomStub)
36+
val bottomStub: ViewStub = v.requireViewById(org.calyxos.backup.storage.R.id.bottomStub)
3737
bottomStub.layoutResource = R.layout.footer_snapshots
3838
val footer = bottomStub.inflate()
3939
val skipView: TextView = footer.requireViewById(R.id.skipView)

app/src/main/java/com/stevesoltys/seedvault/restore/RestoreSetAdapter.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ internal class RestoreSetAdapter(
8484
val apkTextColor = if (item.canBeRestored) {
8585
appView.currentTextColor
8686
} else {
87-
MaterialColors.getColor(apkView, R.attr.colorError)
87+
MaterialColors.getColor(apkView, com.google.android.material.R.attr.colorError)
8888
}
8989
apkView.setTextColor(apkTextColor)
9090
timeView.text = getRelativeTime(item.time)

app/src/main/java/com/stevesoltys/seedvault/ui/notification/BackupNotificationManager.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ internal class BackupNotificationManager(private val context: Context) {
301301
val intent = Intent(context, RestoreActivity::class.java)
302302
val pendingIntent = getActivity(context, 0, intent, FLAG_IMMUTABLE)
303303
setContentIntent(pendingIntent)
304-
setSmallIcon(R.drawable.ic_cloud_restore)
304+
setSmallIcon(org.calyxos.backup.storage.R.drawable.ic_cloud_restore)
305305
setContentTitle(context.getString(R.string.notification_restore_title))
306306
setOngoing(true)
307307
setShowWhen(false)
@@ -347,7 +347,7 @@ internal class BackupNotificationManager(private val context: Context) {
347347

348348
fun getPruningNotification(): Notification {
349349
return Builder(context, CHANNEL_ID_PRUNING).apply {
350-
setSmallIcon(R.drawable.ic_auto_delete)
350+
setSmallIcon(org.calyxos.backup.storage.R.drawable.ic_auto_delete)
351351
setContentTitle(context.getString(R.string.notification_pruning_title))
352352
setOngoing(true)
353353
setShowWhen(false)

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ org.gradle.daemon=true
99
android.useAndroidX=true
1010
android.enableJetifier=false
1111
kotlin.code.style=official
12-
android.nonTransitiveRClass=false
12+
android.nonTransitiveRClass=true
1313
android.enableR8.fullMode=false
1414
android.injected.androidTest.leaveApksInstalledAfterRun = true

0 commit comments

Comments
 (0)