Show a warning for users on API < 19.
We'll be updating minSdk to 19 in 4.37. This lets these users continue to use the app, but they'll be warned with a persistent banner saying that they can't receive updates.pull/9/head
parent
64cf032181
commit
975a121c55
@ -0,0 +1,23 @@
|
|||||||
|
package org.thoughtcrime.securesms.components.reminder;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.os.Build;
|
||||||
|
import android.support.annotation.NonNull;
|
||||||
|
|
||||||
|
import org.thoughtcrime.securesms.R;
|
||||||
|
|
||||||
|
public class UnsupportedAndroidVersionReminder extends Reminder {
|
||||||
|
|
||||||
|
public UnsupportedAndroidVersionReminder(@NonNull Context context) {
|
||||||
|
super(null, context.getString(R.string.reminder_header_the_latest_signal_features_wont_work));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isDismissable() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean isEligible() {
|
||||||
|
return Build.VERSION.SDK_INT < 19;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue