Fixed
Status Update
Comments
su...@google.com <su...@google.com> #2
Hi, thanks for reporting, we'll have a look. If you could provide us with a minimum sample app to reproduce the issue, that'd be very helpful.
ra...@google.com <ra...@google.com> #3
I confirm I managed to reproduce with API 23 emulator and the following patch on the sample app. Will investigate further.
Patch below.
***
Index: app/src/main/java/androidx/viewpager2/integration/testapp/cards/CardView.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- app/src/main/java/androidx/viewpager2/integration/testapp/cards/CardView.kt (revision 38ea42c142729c777dcf8f3e4bd5100aeca981ec)
+++ app/src/main/java/androidx/viewpager2/integration/testapp/cards/CardView.kt (date 1565281963000)
@@ -16,9 +16,11 @@
package androidx.viewpager2.integration.testapp.cards
+import android.text.SpannableStringBuilder
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
+import android.widget.EditText
import android.widget.TextView
import androidx.annotation.ColorRes
@@ -28,7 +30,7 @@
/** Inflates and populates a [View] representing a [Card] */
class CardView(layoutInflater: LayoutInflater, container: ViewGroup?) {
val view: View = layoutInflater.inflate(R.layout.item_card_layout, container, false)
- private val textSuite: TextView
+ private val textSuite: EditText
private val textCorner1: TextView
private val textCorner2: TextView
@@ -42,7 +44,7 @@
* Updates the view to represent the passed in card
*/
fun bind(card: Card) {
- textSuite.text = card.suit
+ textSuite.text = SpannableStringBuilder(card.suit)
view.setBackgroundResource(getColorRes(card))
val cornerLabel = card.cornerLabel
Index: app/src/main/res/layout/item_card_layout.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- app/src/main/res/layout/item_card_layout.xml (revision 38ea42c142729c777dcf8f3e4bd5100aeca981ec)
+++ app/src/main/res/layout/item_card_layout.xml (date 1565281963000)
@@ -31,13 +31,15 @@
android:textAppearance="@android:style/TextAppearance.Large"
tools:text="A"/>
- <TextView
+ <EditText
android:id="@+id/label_center"
- android:layout_width="wrap_content"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
+ android:inputType="text"
+ android:maxLines="1"
android:textAppearance="@android:style/TextAppearance.Large"
- tools:text="♠"/>
+ tools:text="♠" />
<TextView
android:id="@+id/label_bottom"
Patch below.
***
Index: app/src/main/java/androidx/viewpager2/integration/testapp/cards/CardView.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- app/src/main/java/androidx/viewpager2/integration/testapp/cards/CardView.kt (revision 38ea42c142729c777dcf8f3e4bd5100aeca981ec)
+++ app/src/main/java/androidx/viewpager2/integration/testapp/cards/CardView.kt (date 1565281963000)
@@ -16,9 +16,11 @@
package androidx.viewpager2.integration.testapp.cards
+import android.text.SpannableStringBuilder
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
+import android.widget.EditText
import android.widget.TextView
import androidx.annotation.ColorRes
@@ -28,7 +30,7 @@
/** Inflates and populates a [View] representing a [Card] */
class CardView(layoutInflater: LayoutInflater, container: ViewGroup?) {
val view: View = layoutInflater.inflate(R.layout.item_card_layout, container, false)
- private val textSuite: TextView
+ private val textSuite: EditText
private val textCorner1: TextView
private val textCorner2: TextView
@@ -42,7 +44,7 @@
* Updates the view to represent the passed in card
*/
fun bind(card: Card) {
- textSuite.text = card.suit
+ textSuite.text = SpannableStringBuilder(card.suit)
view.setBackgroundResource(getColorRes(card))
val cornerLabel = card.cornerLabel
Index: app/src/main/res/layout/item_card_layout.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- app/src/main/res/layout/item_card_layout.xml (revision 38ea42c142729c777dcf8f3e4bd5100aeca981ec)
+++ app/src/main/res/layout/item_card_layout.xml (date 1565281963000)
@@ -31,13 +31,15 @@
android:textAppearance="@android:style/TextAppearance.Large"
tools:text="A"/>
- <TextView
+ <EditText
android:id="@+id/label_center"
- android:layout_width="wrap_content"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
+ android:inputType="text"
+ android:maxLines="1"
android:textAppearance="@android:style/TextAppearance.Large"
- tools:text="♠"/>
+ tools:text="♠" />
<TextView
android:id="@+id/label_bottom"
Description
Version used:alpha-08
Devices/Android versions reproduced on:
HP Slate 6 Voice Tab - android 4.4.2, model :HSTNH-B19C ,kernal version :3.4.39
Problem Description:
Work Manager Start working on previous night to morining when app is opens. I have removed the app in Task Manager
Open my app not started. I have to see log:
first :
09-26 10:41:36.014 17329-17329/com.impecsoft.SmartTrends D/DebugDB: Open
09-26 10:41:36.034 17329-17343/com.impecsoft.SmartTrends E/SQLiteConnection: open, nativeOpen
09-26 10:41:36.054 17329-17343/com.impecsoft.SmartTrends D/dalvikvm: GC_FOR_ALLOC freed 352K, 13% free 2979K/3412K, paused 11ms, total 11ms
09-26 10:41:36.074 17329-17343/com.impecsoft.SmartTrends E/SQLiteConnection: open, nativeOpen
09-26 10:41:36.094 17329-17343/com.impecsoft.SmartTrends E/SystemAlarmDispatcher: Unexpected error in onHandleIntent
java.lang.NullPointerException
at androidx.work.impl.background.systemalarm.DelayMetCommandHandler.handleProcessWork(DelayMetCommandHandler.java:149)
at androidx.work.impl.background.systemalarm.CommandHandler.handleDelayMet(CommandHandler.java:241)
at androidx.work.impl.background.systemalarm.CommandHandler.onHandleIntent(CommandHandler.java:178)
at androidx.work.impl.background.systemalarm.SystemAlarmDispatcher$1.run(SystemAlarmDispatcher.java:259)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
and again open my app:
09-26 10:50:22.698 18119-18119/com.impecsoft.SmartTrends W/dalvikvm: Unable to resolve superclass of Landroidx/work/impl/background/systemjob/SystemJobService; (85)
Link of class 'Landroidx/work/impl/background/systemjob/SystemJobService;' failed
09-26 10:50:22.698 18119-18119/com.impecsoft.SmartTrends E/dalvikvm: Could not find class 'androidx.work.impl.background.systemjob.SystemJobService', referenced from method androidx.work.impl.Schedulers.createBestAvailableBackgroundScheduler
09-26 10:50:22.698 18119-18119/com.impecsoft.SmartTrends W/dalvikvm: VFY: unable to resolve const-class 3074 (Landroidx/work/impl/background/systemjob/SystemJobService;) in Landroidx/work/impl/Schedulers;
09-26 10:50:22.698 18119-18119/com.impecsoft.SmartTrends D/dalvikvm: VFY: replacing opcode 0x1c at 0x000e
09-26 10:50:22.698 18119-18119/com.impecsoft.SmartTrends V/ApplicationPackageManager: setComponentEnabledSetting() componentName=ComponentInfo{com.impecsoft.SmartTrends/androidx.work.impl.background.systemalarm.SystemAlarmService}, newState= 1
09-26 10:50:22.708 18119-18119/com.impecsoft.SmartTrends W/dalvikvm: Unable to resolve superclass of Landroidx/work/impl/constraints/trackers/NetworkStateTracker$NetworkStateCallback; (484)
Link of class 'Landroidx/work/impl/constraints/trackers/NetworkStateTracker$NetworkStateCallback;' failed
09-26 10:50:22.708 18119-18119/com.impecsoft.SmartTrends E/dalvikvm: Could not find class 'androidx.work.impl.constraints.trackers.NetworkStateTracker$NetworkStateCallback', referenced from method androidx.work.impl.constraints.trackers.NetworkStateTracker.<init>
09-26 10:50:22.708 18119-18119/com.impecsoft.SmartTrends W/dalvikvm: VFY: unable to resolve new-instance 3097 (Landroidx/work/impl/constraints/trackers/NetworkStateTracker$NetworkStateCallback;) in Landroidx/work/impl/constraints/trackers/NetworkStateTracker;
09-26 10:50:22.708 18119-18119/com.impecsoft.SmartTrends D/dalvikvm: VFY: replacing opcode 0x22 at 0x0015
09-26 10:50:22.708 18119-18119/com.impecsoft.SmartTrends I/dalvikvm: Could not find method android.net.ConnectivityManager.getActiveNetwork, referenced from method androidx.work.impl.constraints.trackers.NetworkStateTracker.isActiveNetworkValidated
09-26 10:50:22.708 18119-18119/com.impecsoft.SmartTrends W/dalvikvm: VFY: unable to resolve virtual method 2474: Landroid/net/ConnectivityManager;.getActiveNetwork ()Landroid/net/Network;
09-26 10:50:22.708 18119-18119/com.impecsoft.SmartTrends D/dalvikvm: VFY: replacing opcode 0x6e at 0x000a
09-26 10:50:22.708 18119-18119/com.impecsoft.SmartTrends W/dalvikvm: Unable to resolve superclass of Landroidx/work/impl/constraints/trackers/NetworkStateTracker$NetworkStateCallback; (484)
Link of class 'Landroidx/work/impl/constraints/trackers/NetworkStateTracker$NetworkStateCallback;' failed
09-26 10:50:22.718 18119-18119/com.impecsoft.SmartTrends I/dalvikvm: Could not find method android.net.ConnectivityManager.registerDefaultNetworkCallback, referenced from method androidx.work.impl.constraints.trackers.NetworkStateTracker.startTracking
09-26 10:50:22.718 18119-18119/com.impecsoft.SmartTrends W/dalvikvm: VFY: unable to resolve virtual method 2481: Landroid/net/ConnectivityManager;.registerDefaultNetworkCallback (Landroid/net/ConnectivityManager$NetworkCallback;)V
09-26 10:50:22.718 18119-18119/com.impecsoft.SmartTrends D/dalvikvm: VFY: replacing opcode 0x6e at 0x0014
09-26 10:50:22.718 18119-18119/com.impecsoft.SmartTrends W/dalvikvm: Unable to resolve superclass of Landroidx/work/impl/constraints/trackers/NetworkStateTracker$NetworkStateCallback; (484)
Link of class 'Landroidx/work/impl/constraints/trackers/NetworkStateTracker$NetworkStateCallback;' failed
09-26 10:50:22.718 18119-18119/com.impecsoft.SmartTrends I/dalvikvm: Could not find method android.net.ConnectivityManager.unregisterNetworkCallback, referenced from method androidx.work.impl.constraints.trackers.NetworkStateTracker.stopTracking
09-26 10:50:22.718 18119-18119/com.impecsoft.SmartTrends W/dalvikvm: VFY: unable to resolve virtual method 2482: Landroid/net/ConnectivityManager;.unregisterNetworkCallback (Landroid/net/ConnectivityManager$NetworkCallback;)V
09-26 10:50:22.718 18119-18119/com.impecsoft.SmartTrends D/dalvikvm: VFY: replacing opcode 0x6e at 0x0014
09-26 10:50:22.718 18119-18119/com.impecsoft.SmartTrends W/dalvikvm: Unable to resolve superclass of Landroidx/work/impl/constraints/trackers/NetworkStateTracker$NetworkStateCallback; (484)
Link of class 'Landroidx/work/impl/constraints/trackers/NetworkStateTracker$NetworkStateCallback;' failed
09-26 10:50:22.718 18119-18119/com.impecsoft.SmartTrends D/dalvikvm: DexOpt: unable to opt direct call 0x5fe4 at 0x17 in Landroidx/work/impl/constraints/trackers/NetworkStateTracker;.<init>
09-26 10:50:22.728 18119-18119/com.impecsoft.SmartTrends I/dalvikvm: Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method android.support.v4.content.ContextCompat.createDeviceProtectedStorageContext
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).