File tree 4 files changed +4
-16
lines changed
src/main/java/org/xbmc/kore
4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ android {
14
14
15
15
defaultConfig {
16
16
applicationId " org.xbmc.kore"
17
- minSdkVersion 21
17
+ minSdkVersion 24
18
18
targetSdkVersion 32
19
19
versionCode 31
20
20
versionName = getVersionName()
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ public void onCreate() {
139
139
// Create the intent to start the remote when the user taps the notification
140
140
TaskStackBuilder stackBuilder = TaskStackBuilder .create (this );
141
141
stackBuilder .addNextIntentWithParentStack (new Intent (this , RemoteActivity .class ));
142
- int flags = Utils . isMOrLater () ? PendingIntent .FLAG_IMMUTABLE | PendingIntent . FLAG_UPDATE_CURRENT : PendingIntent .FLAG_UPDATE_CURRENT ;
142
+ int flags = PendingIntent .FLAG_IMMUTABLE | PendingIntent .FLAG_UPDATE_CURRENT ;
143
143
remoteStartPendingIntent = stackBuilder .getPendingIntent (0 , flags );
144
144
145
145
// Create the notification channel and the default notification
Original file line number Diff line number Diff line change @@ -294,13 +294,9 @@ private void updatePreferredLanguage(String localeName) {
294
294
}
295
295
296
296
private Locale getSystemLocale () {
297
- return Utils .isNOrLater () ?
298
- Resources .getSystem ().getConfiguration ().getLocales ().get (0 ) :
299
- Resources .getSystem ().getConfiguration ().locale ;
297
+ return Resources .getSystem ().getConfiguration ().getLocales ().get (0 );
300
298
}
301
299
302
300
private Locale getCurrentLocale () {
303
- return Utils .isNOrLater () ?
304
- getResources ().getConfiguration ().getLocales ().get (0 ) :
305
- getResources ().getConfiguration ().locale ;
301
+ return getResources ().getConfiguration ().getLocales ().get (0 );
306
302
}}
Original file line number Diff line number Diff line change 40
40
public class Utils {
41
41
private static final String TAG = LogUtils .makeLogTag (Utils .class );
42
42
43
- public static boolean isMOrLater () {
44
- return Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ;
45
- }
46
-
47
- public static boolean isNOrLater () {
48
- return Build .VERSION .SDK_INT >= Build .VERSION_CODES .N ;
49
- }
50
-
51
43
public static boolean isOreoOrLater () { return Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ; }
52
44
53
45
public static boolean isOreoMR1OrLater () { return Build .VERSION .SDK_INT >= Build .VERSION_CODES .O_MR1 ; }
You can’t perform that action at this time.
0 commit comments