mirror of
				https://github.com/SimpleMobileTools/Simple-Dialer.git
				synced 2025-06-05 21:49:23 +02:00 
			
		
		
		
	adding some Android 12 related improvements here and there
This commit is contained in:
		| @@ -35,6 +35,7 @@ | ||||
|     <application | ||||
|         android:name=".App" | ||||
|         android:allowBackup="true" | ||||
|         android:appCategory="productivity" | ||||
|         android:icon="@mipmap/ic_launcher" | ||||
|         android:label="@string/app_launcher_name" | ||||
|         android:roundIcon="@mipmap/ic_launcher" | ||||
| @@ -42,11 +43,13 @@ | ||||
|  | ||||
|         <activity | ||||
|             android:name=".activities.SplashActivity" | ||||
|             android:exported="false" | ||||
|             android:theme="@style/SplashTheme" /> | ||||
|  | ||||
|         <activity | ||||
|             android:name=".activities.MainActivity" | ||||
|             android:configChanges="orientation|screenSize"> | ||||
|             android:configChanges="orientation|screenSize" | ||||
|             android:exported="true"> | ||||
|  | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.intent.action.VIEW" /> | ||||
| @@ -57,38 +60,51 @@ | ||||
|  | ||||
|         <activity | ||||
|             android:name="com.simplemobiletools.commons.activities.AboutActivity" | ||||
|             android:exported="false" | ||||
|             android:label="@string/about" | ||||
|             android:parentActivityName=".activities.MainActivity" /> | ||||
|  | ||||
|         <activity | ||||
|             android:name="com.simplemobiletools.commons.activities.CustomizationActivity" | ||||
|             android:exported="false" | ||||
|             android:label="@string/customize_colors" | ||||
|             android:parentActivityName=".activities.SettingsActivity" /> | ||||
|  | ||||
|         <activity | ||||
|             android:name="com.simplemobiletools.commons.activities.ManageBlockedNumbersActivity" | ||||
|             android:exported="false" | ||||
|             android:label="@string/blocked_numbers" | ||||
|             android:parentActivityName=".activities.SettingsActivity" /> | ||||
|  | ||||
|         <activity | ||||
|             android:name=".activities.ManageSpeedDialActivity" | ||||
|             android:exported="false" | ||||
|             android:label="@string/speed_dial" | ||||
|             android:parentActivityName=".activities.SettingsActivity" /> | ||||
|  | ||||
|         <activity | ||||
|             android:name=".activities.SettingsActivity" | ||||
|             android:exported="true" | ||||
|             android:label="@string/settings" | ||||
|             android:parentActivityName=".activities.MainActivity" /> | ||||
|             android:parentActivityName=".activities.MainActivity"> | ||||
|  | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.intent.action.APPLICATION_PREFERENCES" /> | ||||
|                 <category android:name="android.intent.category.DEFAULT" /> | ||||
|             </intent-filter> | ||||
|         </activity> | ||||
|  | ||||
|         <activity | ||||
|             android:name=".activities.CallActivity" | ||||
|             android:excludeFromRecents="true" | ||||
|             android:exported="false" | ||||
|             android:label="@string/ongoing_call" | ||||
|             android:screenOrientation="portrait" | ||||
|             android:showOnLockScreen="true" /> | ||||
|  | ||||
|         <activity | ||||
|             android:name=".activities.DialpadActivity" | ||||
|             android:exported="true" | ||||
|             android:label="@string/dialpad" | ||||
|             android:parentActivityName=".activities.MainActivity" | ||||
|             android:windowSoftInputMode="stateHidden"> | ||||
| @@ -119,6 +135,7 @@ | ||||
|  | ||||
|         <activity | ||||
|             android:name=".activities.DialerActivity" | ||||
|             android:exported="true" | ||||
|             android:label="@string/dialer" | ||||
|             android:theme="@style/Theme.Transparent"> | ||||
|  | ||||
| @@ -157,6 +174,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Red" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_red" | ||||
|             android:roundIcon="@mipmap/ic_launcher_red" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -170,6 +188,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Pink" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_pink" | ||||
|             android:roundIcon="@mipmap/ic_launcher_pink" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -183,6 +202,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Purple" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_purple" | ||||
|             android:roundIcon="@mipmap/ic_launcher_purple" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -196,6 +216,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Deep_purple" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_deep_purple" | ||||
|             android:roundIcon="@mipmap/ic_launcher_deep_purple" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -209,6 +230,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Indigo" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_indigo" | ||||
|             android:roundIcon="@mipmap/ic_launcher_indigo" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -222,6 +244,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Blue" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_blue" | ||||
|             android:roundIcon="@mipmap/ic_launcher_blue" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -235,6 +258,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Light_blue" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_light_blue" | ||||
|             android:roundIcon="@mipmap/ic_launcher_light_blue" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -248,6 +272,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Cyan" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_cyan" | ||||
|             android:roundIcon="@mipmap/ic_launcher_cyan" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -261,6 +286,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Teal" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_teal" | ||||
|             android:roundIcon="@mipmap/ic_launcher_teal" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -274,6 +300,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Green" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_green" | ||||
|             android:roundIcon="@mipmap/ic_launcher_green" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -287,6 +314,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Light_green" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_light_green" | ||||
|             android:roundIcon="@mipmap/ic_launcher_light_green" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -300,6 +328,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Lime" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_lime" | ||||
|             android:roundIcon="@mipmap/ic_launcher_lime" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -313,6 +342,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Yellow" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_yellow" | ||||
|             android:roundIcon="@mipmap/ic_launcher_yellow" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -326,6 +356,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Amber" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_amber" | ||||
|             android:roundIcon="@mipmap/ic_launcher_amber" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -339,6 +370,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Orange" | ||||
|             android:enabled="true" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher" | ||||
|             android:roundIcon="@mipmap/ic_launcher" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -351,6 +383,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Deep_orange" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_deep_orange" | ||||
|             android:roundIcon="@mipmap/ic_launcher_deep_orange" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -364,6 +397,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Brown" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_brown" | ||||
|             android:roundIcon="@mipmap/ic_launcher_brown" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -377,6 +411,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Blue_grey" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_blue_grey" | ||||
|             android:roundIcon="@mipmap/ic_launcher_blue_grey" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
| @@ -390,6 +425,7 @@ | ||||
|         <activity-alias | ||||
|             android:name=".activities.SplashActivity.Grey_black" | ||||
|             android:enabled="false" | ||||
|             android:exported="true" | ||||
|             android:icon="@mipmap/ic_launcher_grey_black" | ||||
|             android:roundIcon="@mipmap/ic_launcher_grey_black" | ||||
|             android:targetActivity=".activities.SplashActivity"> | ||||
|   | ||||
| @@ -1,6 +1,8 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <menu xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto"> | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     tools:ignore="AppCompatResource"> | ||||
|     <item | ||||
|         android:id="@+id/cab_call_sim_1" | ||||
|         android:icon="@drawable/ic_phone_one_vector" | ||||
| @@ -28,14 +30,17 @@ | ||||
|         app:showAsAction="always" /> | ||||
|     <item | ||||
|         android:id="@+id/cab_create_shortcut" | ||||
|         android:showAsAction="never" | ||||
|         android:title="@string/create_shortcut" | ||||
|         app:showAsAction="never" /> | ||||
|     <item | ||||
|         android:id="@+id/cab_remove_default_sim" | ||||
|         android:showAsAction="never" | ||||
|         android:title="@string/unset_default_sim" | ||||
|         app:showAsAction="never" /> | ||||
|     <item | ||||
|         android:id="@+id/cab_select_all" | ||||
|         android:showAsAction="never" | ||||
|         android:title="@string/select_all" | ||||
|         app:showAsAction="never" /> | ||||
| </menu> | ||||
|   | ||||
| @@ -1,6 +1,8 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <menu xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto"> | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     tools:ignore="AppCompatResource"> | ||||
|     <item | ||||
|         android:id="@+id/cab_call_sim_1" | ||||
|         android:icon="@drawable/ic_phone_one_vector" | ||||
| @@ -33,18 +35,22 @@ | ||||
|         app:showAsAction="ifRoom" /> | ||||
|     <item | ||||
|         android:id="@+id/cab_show_call_details" | ||||
|         android:showAsAction="never" | ||||
|         android:title="@string/show_call_details" | ||||
|         app:showAsAction="never" /> | ||||
|     <item | ||||
|         android:id="@+id/cab_copy_number" | ||||
|         android:showAsAction="never" | ||||
|         android:title="@string/copy_number_to_clipboard" | ||||
|         app:showAsAction="never" /> | ||||
|     <item | ||||
|         android:id="@+id/cab_remove_default_sim" | ||||
|         android:showAsAction="never" | ||||
|         android:title="@string/unset_default_sim" | ||||
|         app:showAsAction="never" /> | ||||
|     <item | ||||
|         android:id="@+id/cab_select_all" | ||||
|         android:showAsAction="never" | ||||
|         android:title="@string/select_all" | ||||
|         app:showAsAction="never" /> | ||||
| </menu> | ||||
|   | ||||
| @@ -7,7 +7,7 @@ buildscript { | ||||
|         jcenter() | ||||
|     } | ||||
|     dependencies { | ||||
|         classpath 'com.android.tools.build:gradle:7.0.4' | ||||
|         classpath 'com.android.tools.build:gradle:7.1.2' | ||||
|         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||||
|  | ||||
|         // NOTE: Do not place your application dependencies here; they belong | ||||
|   | ||||
							
								
								
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							| @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME | ||||
| distributionPath=wrapper/dists | ||||
| zipStoreBase=GRADLE_USER_HOME | ||||
| zipStorePath=wrapper/dists | ||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip | ||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||||
|   | ||||
		Reference in New Issue
	
	Block a user