Chinese translation added.
This commit is contained in:
parent
6b9dbca7ab
commit
f1315dc742
@ -11,8 +11,8 @@ android {
|
|||||||
compileSdkVersion 31
|
compileSdkVersion 31
|
||||||
buildToolsVersion '29.0.2'
|
buildToolsVersion '29.0.2'
|
||||||
useLibrary 'org.apache.http.legacy'
|
useLibrary 'org.apache.http.legacy'
|
||||||
versionCode 132
|
versionCode 133
|
||||||
versionName "1.7.16"
|
versionName "1.7.17"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
@ -39,6 +39,12 @@ android {
|
|||||||
targetSdkVersion 31
|
targetSdkVersion 31
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
targetSdkVersion is kept at 28 for as long as possible.
|
||||||
|
If raised wifi cannot be switched on or off anymore without root permissions.
|
||||||
|
In the Google version I'm forced to raise the value regularly.
|
||||||
|
*/
|
||||||
|
|
||||||
fdroidFlavor
|
fdroidFlavor
|
||||||
{
|
{
|
||||||
dimension "version"
|
dimension "version"
|
||||||
|
@ -2272,7 +2272,7 @@ public class Actions
|
|||||||
|
|
||||||
public static void startPhoneCall(Context context, String phoneNumber)
|
public static void startPhoneCall(Context context, String phoneNumber)
|
||||||
{
|
{
|
||||||
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumber));
|
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + Uri.encode(phoneNumber)));
|
||||||
// intent.setClassName("com.android.phone","com.android.phone.OutgoingCallBroadcaster");
|
// intent.setClassName("com.android.phone","com.android.phone.OutgoingCallBroadcaster");
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
intent.addFlags(Intent.FLAG_FROM_BACKGROUND);
|
intent.addFlags(Intent.FLAG_FROM_BACKGROUND);
|
||||||
|
@ -39,8 +39,10 @@ public class ActivityControlCenter extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_control_center);
|
setContentView(R.layout.activity_control_center);
|
||||||
|
|
||||||
|
|
||||||
bVolumeTest = (Button) findViewById(R.id.bVolumeTest);
|
bVolumeTest = (Button) findViewById(R.id.bVolumeTest);
|
||||||
bVolumeTest.setOnClickListener(new View.OnClickListener()
|
bVolumeTest.setOnClickListener(new View.OnClickListener()
|
||||||
{
|
{
|
||||||
@ -384,6 +386,7 @@ public class ActivityControlCenter extends Activity
|
|||||||
protected void onResume()
|
protected void onResume()
|
||||||
{
|
{
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
|
|
||||||
String folder = Miscellaneous.getWriteableFolder();
|
String folder = Miscellaneous.getWriteableFolder();
|
||||||
if (folder != null && folder.length() > 0)
|
if (folder != null && folder.length() > 0)
|
||||||
|
@ -21,6 +21,7 @@ public class ActivityDisplayLongMessage extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_display_long_message);
|
setContentView(R.layout.activity_display_long_message);
|
||||||
|
|
||||||
tvMessageTitle = (TextView)findViewById(R.id.tvMessageTitle);
|
tvMessageTitle = (TextView)findViewById(R.id.tvMessageTitle);
|
||||||
|
@ -13,6 +13,7 @@ public class ActivityHelp extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(layout.activity_help_text);
|
setContentView(layout.activity_help_text);
|
||||||
|
|
||||||
TextView tvHelpTextEnergySaving = (TextView) findViewById(R.id.tvHelpTextEnergySaving);
|
TextView tvHelpTextEnergySaving = (TextView) findViewById(R.id.tvHelpTextEnergySaving);
|
||||||
|
@ -44,7 +44,7 @@ public class ActivityMainPoi extends ActivityGeneric
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
Miscellaneous.setDisplayLanguage(ActivityMainPoi.this);
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.main_poi_layout);
|
setContentView(R.layout.main_poi_layout);
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
@ -108,6 +108,13 @@ public class ActivityMainPoi extends ActivityGeneric
|
|||||||
this.storeServiceReferenceInVariable();
|
this.storeServiceReferenceInVariable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onResume()
|
||||||
|
{
|
||||||
|
super.onResume();
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
|
}
|
||||||
|
|
||||||
private void buttonAddPoi()
|
private void buttonAddPoi()
|
||||||
{
|
{
|
||||||
poiToEdit = null;
|
poiToEdit = null;
|
||||||
|
@ -40,7 +40,7 @@ public class ActivityMainProfiles extends ActivityGeneric
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
Miscellaneous.setDisplayLanguage(ActivityMainProfiles.this);
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.main_profile_layout);
|
setContentView(R.layout.main_profile_layout);
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
@ -155,6 +155,13 @@ public class ActivityMainProfiles extends ActivityGeneric
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onResume()
|
||||||
|
{
|
||||||
|
super.onResume();
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
|
}
|
||||||
|
|
||||||
private AlertDialog getProfileDialog(final Profile profile)
|
private AlertDialog getProfileDialog(final Profile profile)
|
||||||
{
|
{
|
||||||
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);
|
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);
|
||||||
|
@ -48,7 +48,7 @@ public class ActivityMainRules extends ActivityGeneric
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
Miscellaneous.setDisplayLanguage(ActivityMainRules.this);
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.main_rule_layout);
|
setContentView(R.layout.main_rule_layout);
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
@ -154,6 +154,13 @@ public class ActivityMainRules extends ActivityGeneric
|
|||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onResume()
|
||||||
|
{
|
||||||
|
super.onResume();
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onActivityResult(int requestCode, int resultCode, Intent data)
|
protected void onActivityResult(int requestCode, int resultCode, Intent data)
|
||||||
|
@ -55,7 +55,7 @@ public class ActivityMainScreen extends ActivityGeneric
|
|||||||
public void onCreate(Bundle savedInstanceState)
|
public void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
Miscellaneous.setDisplayLanguage(ActivityMainScreen.this);
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.main_overview_layout);
|
setContentView(R.layout.main_overview_layout);
|
||||||
|
|
||||||
activityMainScreenInstance = this;
|
activityMainScreenInstance = this;
|
||||||
@ -571,6 +571,7 @@ public class ActivityMainScreen extends ActivityGeneric
|
|||||||
protected void onResume()
|
protected void onResume()
|
||||||
{
|
{
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
toggleService.setChecked(AutomationService.isMyServiceRunning(this));
|
toggleService.setChecked(AutomationService.isMyServiceRunning(this));
|
||||||
ActivityMainScreen.updateMainScreen();
|
ActivityMainScreen.updateMainScreen();
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ public class ActivityMainTabLayout extends TabActivity
|
|||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
Settings.readFromPersistentStorage(ActivityMainTabLayout.this);
|
Settings.readFromPersistentStorage(ActivityMainTabLayout.this);
|
||||||
Miscellaneous.setDisplayLanguage(ActivityMainTabLayout.this);
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
|
|
||||||
if(Settings.tabsPlacement == 1)
|
if(Settings.tabsPlacement == 1)
|
||||||
setContentView(R.layout.main_tab_layout_tabs_at_bottom);
|
setContentView(R.layout.main_tab_layout_tabs_at_bottom);
|
||||||
@ -65,6 +65,7 @@ public class ActivityMainTabLayout extends TabActivity
|
|||||||
protected void onResume()
|
protected void onResume()
|
||||||
{
|
{
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
// Miscellaneous.logEvent("i", "NFC", "ActivityMainTabLayout.onResume().", 5);
|
// Miscellaneous.logEvent("i", "NFC", "ActivityMainTabLayout.onResume().", 5);
|
||||||
NfcReceiver.checkIntentForNFC(this, getIntent());
|
NfcReceiver.checkIntentForNFC(this, getIntent());
|
||||||
// NfcReceiver.checkIntentForNFC(this, new Intent(this.getApplicationContext(), this.getClass()));
|
// NfcReceiver.checkIntentForNFC(this, new Intent(this.getApplicationContext(), this.getClass()));
|
||||||
|
@ -26,6 +26,7 @@ public class ActivityManageActionBrightnessSetting extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
setContentView(R.layout.activity_manage_action_brightness_settings);
|
setContentView(R.layout.activity_manage_action_brightness_settings);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
chkAutoBrightness = (CheckBox)findViewById(R.id.chkAutoBrightness);
|
chkAutoBrightness = (CheckBox)findViewById(R.id.chkAutoBrightness);
|
||||||
|
@ -259,6 +259,7 @@ public class ActivityManageActionCloseNotification extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_close_notification);
|
setContentView(R.layout.activity_manage_action_close_notification);
|
||||||
|
|
||||||
etNotificationTitle = (EditText)findViewById(R.id.etNotificationTitle);
|
etNotificationTitle = (EditText)findViewById(R.id.etNotificationTitle);
|
||||||
|
@ -19,6 +19,7 @@ public class ActivityManageActionControlMedia extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_control_media);
|
setContentView(R.layout.activity_manage_action_control_media);
|
||||||
|
|
||||||
rbMediaPlayPause = (RadioButton)findViewById(R.id.rbMediaPlayPause);
|
rbMediaPlayPause = (RadioButton)findViewById(R.id.rbMediaPlayPause);
|
||||||
|
@ -19,6 +19,7 @@ public class ActivityManageActionCopyToClipboard extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
this.setContentView(R.layout.activity_manage_action_copy_to_clipboard);
|
this.setContentView(R.layout.activity_manage_action_copy_to_clipboard);
|
||||||
|
|
||||||
bSaveCopyToClipboard = (Button) findViewById(R.id.bSaveCopyToClipboard);
|
bSaveCopyToClipboard = (Button) findViewById(R.id.bSaveCopyToClipboard);
|
||||||
|
@ -24,6 +24,7 @@ public class ActivityManageActionCreateNotification extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_create_notification);
|
setContentView(R.layout.activity_manage_action_create_notification);
|
||||||
|
|
||||||
etNotificationTitle = (EditText) findViewById(R.id.etNotificationTitle);
|
etNotificationTitle = (EditText) findViewById(R.id.etNotificationTitle);
|
||||||
|
@ -21,6 +21,7 @@ public class ActivityManageActionMakePhoneCall extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_make_phone_call);
|
setContentView(R.layout.activity_manage_action_make_phone_call);
|
||||||
|
|
||||||
etTargetPhoneNumber = (EditText)findViewById(R.id.etTargetPhoneNumber);
|
etTargetPhoneNumber = (EditText)findViewById(R.id.etTargetPhoneNumber);
|
||||||
|
@ -26,6 +26,7 @@ public class ActivityManageActionPlaySound extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_play_sound);
|
setContentView(R.layout.activity_manage_action_play_sound);
|
||||||
|
|
||||||
chkPlaySoundAlwaysPlay = (CheckBox)findViewById(R.id.chkPlaySoundAlwaysPlay);
|
chkPlaySoundAlwaysPlay = (CheckBox)findViewById(R.id.chkPlaySoundAlwaysPlay);
|
||||||
|
@ -28,6 +28,7 @@ public class ActivityManageActionRunExecutable extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_run_executable);
|
setContentView(R.layout.activity_manage_action_run_executable);
|
||||||
|
|
||||||
chkRunExecAsRoot = (CheckBox)findViewById(R.id.chkRunExecAsRoot);
|
chkRunExecAsRoot = (CheckBox)findViewById(R.id.chkRunExecAsRoot);
|
||||||
|
@ -37,6 +37,7 @@ public class ActivityManageActionSendBroadcast extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_send_broadcast);
|
setContentView(R.layout.activity_manage_action_send_broadcast);
|
||||||
|
|
||||||
etBroadcastToSend = (EditText)findViewById(R.id.etBroadcastToSend);
|
etBroadcastToSend = (EditText)findViewById(R.id.etBroadcastToSend);
|
||||||
|
@ -48,6 +48,7 @@ public class ActivityManageActionSendTextMessage extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
this.setContentView(R.layout.activity_manage_action_send_textmessage);
|
this.setContentView(R.layout.activity_manage_action_send_textmessage);
|
||||||
|
|
||||||
etSendTextMessage = (EditText)findViewById(R.id.etSendTextMessage);
|
etSendTextMessage = (EditText)findViewById(R.id.etSendTextMessage);
|
||||||
|
@ -24,6 +24,7 @@ public class ActivityManageActionSetVariable extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
this.setContentView(R.layout.activity_manage_action_set_variable);
|
this.setContentView(R.layout.activity_manage_action_set_variable);
|
||||||
|
|
||||||
etVariableSetKey = (EditText)findViewById(R.id.etVariableSetKey);
|
etVariableSetKey = (EditText)findViewById(R.id.etVariableSetKey);
|
||||||
|
@ -22,6 +22,7 @@ public class ActivityManageActionSpeakText extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
this.setContentView(R.layout.activity_manage_action_speak_text);
|
this.setContentView(R.layout.activity_manage_action_speak_text);
|
||||||
|
|
||||||
etSpeakText = (EditText)findViewById(R.id.etTextToSpeak);
|
etSpeakText = (EditText)findViewById(R.id.etTextToSpeak);
|
||||||
|
@ -66,6 +66,7 @@ public class ActivityManageActionStartActivity extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_start_activity);
|
setContentView(R.layout.activity_manage_action_start_activity);
|
||||||
|
|
||||||
lvIntentPairs = (ListView)findViewById(R.id.lvIntentPairs);
|
lvIntentPairs = (ListView)findViewById(R.id.lvIntentPairs);
|
||||||
|
@ -39,6 +39,7 @@ public class ActivityManageActionTriggerUrl extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
this.setContentView(R.layout.activity_manage_action_trigger_url);
|
this.setContentView(R.layout.activity_manage_action_trigger_url);
|
||||||
|
|
||||||
etTriggerUrl = (EditText)findViewById(R.id.etTriggerUrl);
|
etTriggerUrl = (EditText)findViewById(R.id.etTriggerUrl);
|
||||||
|
@ -27,6 +27,7 @@ public class ActivityManageActionVibrate extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_vibrate);
|
setContentView(R.layout.activity_manage_action_vibrate);
|
||||||
|
|
||||||
etVibratePattern = (EditText)findViewById(R.id.etVibratePattern);
|
etVibratePattern = (EditText)findViewById(R.id.etVibratePattern);
|
||||||
|
@ -27,6 +27,7 @@ public class ActivityManageActionWakeLock extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_wakelock);
|
setContentView(R.layout.activity_manage_action_wakelock);
|
||||||
|
|
||||||
rbWakeLockActivate = (RadioButton)findViewById(R.id.rbWakeLockActivate);
|
rbWakeLockActivate = (RadioButton)findViewById(R.id.rbWakeLockActivate);
|
||||||
|
@ -23,6 +23,7 @@ public class ActivityManageActionWifi extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_action_wifi);
|
setContentView(R.layout.activity_manage_action_wifi);
|
||||||
|
|
||||||
chkWifiRunAsRoot = (CheckBox)findViewById(R.id.chkWifiRunAsRoot);
|
chkWifiRunAsRoot = (CheckBox)findViewById(R.id.chkWifiRunAsRoot);
|
||||||
|
@ -59,6 +59,7 @@ public class ActivityManagePoi extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
this.setContentView(R.layout.activity_manage_specific_poi);
|
this.setContentView(R.layout.activity_manage_specific_poi);
|
||||||
|
|
||||||
myLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
|
myLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
|
||||||
|
@ -86,6 +86,7 @@ public class ActivityManageProfile extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
this.setContentView(R.layout.activity_manage_specific_profile);
|
this.setContentView(R.layout.activity_manage_specific_profile);
|
||||||
|
|
||||||
checkBoxChangeSoundMode = (CheckBox)findViewById(R.id.checkBoxChangeSoundMode);
|
checkBoxChangeSoundMode = (CheckBox)findViewById(R.id.checkBoxChangeSoundMode);
|
||||||
|
@ -154,6 +154,7 @@ public class ActivityManageRule extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_specific_rule);
|
setContentView(R.layout.activity_manage_specific_rule);
|
||||||
|
|
||||||
context = this;
|
context = this;
|
||||||
|
@ -32,6 +32,7 @@ public class ActivityManageTriggerBluetooth extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_bluetooth);
|
setContentView(R.layout.activity_manage_trigger_bluetooth);
|
||||||
|
|
||||||
radioAnyBluetoothDevice = (RadioButton)findViewById(R.id.radioAnyBluetoothDevice);
|
radioAnyBluetoothDevice = (RadioButton)findViewById(R.id.radioAnyBluetoothDevice);
|
||||||
|
@ -28,6 +28,7 @@ public class ActivityManageTriggerBroadcast extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_broadcasts);
|
setContentView(R.layout.activity_manage_trigger_broadcasts);
|
||||||
|
|
||||||
bBroadcastShowSuggestions = findViewById(R.id.bBroadcastShowSuggestions);
|
bBroadcastShowSuggestions = findViewById(R.id.bBroadcastShowSuggestions);
|
||||||
|
@ -20,6 +20,7 @@ public class ActivityManageTriggerCheckVariable extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_check_variable);
|
setContentView(R.layout.activity_manage_trigger_check_variable);
|
||||||
|
|
||||||
etVariableKeyTrigger = (EditText) findViewById(R.id.etVariableKeyTrigger);
|
etVariableKeyTrigger = (EditText) findViewById(R.id.etVariableKeyTrigger);
|
||||||
|
@ -104,6 +104,7 @@ public class ActivityManageTriggerDeviceOrientation extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_device_orientation);
|
setContentView(R.layout.activity_manage_trigger_device_orientation);
|
||||||
|
|
||||||
currentAzimuth = (TextView) findViewById(R.id.tvCurrentAzimuth);
|
currentAzimuth = (TextView) findViewById(R.id.tvCurrentAzimuth);
|
||||||
|
@ -39,6 +39,7 @@ public class ActivityManageTriggerNfc extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_nfc);
|
setContentView(R.layout.activity_manage_trigger_nfc);
|
||||||
|
|
||||||
etNewNfcIdValue = (EditText)findViewById(R.id.etNewNfcIdValue);
|
etNewNfcIdValue = (EditText)findViewById(R.id.etNewNfcIdValue);
|
||||||
|
@ -258,6 +258,7 @@ public class ActivityManageTriggerNotification extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_notification);
|
setContentView(R.layout.activity_manage_trigger_notification);
|
||||||
|
|
||||||
etNotificationTitle = (EditText)findViewById(R.id.etNotificationTitle);
|
etNotificationTitle = (EditText)findViewById(R.id.etNotificationTitle);
|
||||||
|
@ -35,6 +35,7 @@ public class ActivityManageTriggerPhoneCall extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_phone_call);
|
setContentView(R.layout.activity_manage_trigger_phone_call);
|
||||||
|
|
||||||
etTriggerPhoneCallPhoneNumber = (EditText)findViewById(R.id.etTriggerPhoneCallPhoneNumber);
|
etTriggerPhoneCallPhoneNumber = (EditText)findViewById(R.id.etTriggerPhoneCallPhoneNumber);
|
||||||
|
@ -31,6 +31,7 @@ public class ActivityManageTriggerProfile extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_profile);
|
setContentView(R.layout.activity_manage_trigger_profile);
|
||||||
|
|
||||||
bSaveTriggerProfile = (Button)findViewById(R.id.bSaveTriggerProfile);
|
bSaveTriggerProfile = (Button)findViewById(R.id.bSaveTriggerProfile);
|
||||||
|
@ -21,6 +21,7 @@ public class ActivityManageTriggerSubSystemState extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_subsystemstate);
|
setContentView(R.layout.activity_manage_trigger_subsystemstate);
|
||||||
|
|
||||||
rbSubSystemStateWifi = (RadioButton)findViewById(R.id.rbSubSystemStateWifi);
|
rbSubSystemStateWifi = (RadioButton)findViewById(R.id.rbSubSystemStateWifi);
|
||||||
|
@ -26,6 +26,7 @@ public class ActivityManageTriggerTethering extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_tethering);
|
setContentView(R.layout.activity_manage_trigger_tethering);
|
||||||
|
|
||||||
rbTetheringOn = (RadioButton) findViewById(R.id.rbTetheringOn);
|
rbTetheringOn = (RadioButton) findViewById(R.id.rbTetheringOn);
|
||||||
|
@ -35,6 +35,7 @@ public class ActivityManageTriggerTimeFrame extends Activity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_timeframe);
|
setContentView(R.layout.activity_manage_trigger_timeframe);
|
||||||
|
|
||||||
startPicker = (TimePicker)findViewById(R.id.tpTimeFrameStart);
|
startPicker = (TimePicker)findViewById(R.id.tpTimeFrameStart);
|
||||||
|
@ -49,6 +49,7 @@ public class ActivityManageTriggerWifi extends Activity
|
|||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
protected void onCreate(@Nullable Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_manage_trigger_wifi);
|
setContentView(R.layout.activity_manage_trigger_wifi);
|
||||||
|
|
||||||
rbTriggerWifiConnected = (RadioButton) findViewById(R.id.rbTriggerWifiConnected);
|
rbTriggerWifiConnected = (RadioButton) findViewById(R.id.rbTriggerWifiConnected);
|
||||||
|
@ -79,6 +79,7 @@ public class ActivityPermissions extends Activity
|
|||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.permissions_activity);
|
setContentView(R.layout.permissions_activity);
|
||||||
|
|
||||||
bCancelPermissions = (Button)findViewById(R.id.bCancelPermissions);
|
bCancelPermissions = (Button)findViewById(R.id.bCancelPermissions);
|
||||||
|
@ -16,6 +16,7 @@ public class ActivitySettings extends PreferenceActivity
|
|||||||
protected void onCreate(Bundle savedInstanceState)
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
addPreferencesFromResource(layout.activity_settings);
|
addPreferencesFromResource(layout.activity_settings);
|
||||||
|
|
||||||
if(BuildConfig.FLAVOR.equals(AutomationService.flavor_name_apk))
|
if(BuildConfig.FLAVOR.equals(AutomationService.flavor_name_apk))
|
||||||
@ -24,4 +25,11 @@ public class ActivitySettings extends PreferenceActivity
|
|||||||
chkPrefUpdateCheck.setEnabled(true);
|
chkPrefUpdateCheck.setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onResume()
|
||||||
|
{
|
||||||
|
super.onResume();
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
|
}
|
||||||
}
|
}
|
@ -30,6 +30,7 @@ public class ActivityVolumeTest extends Activity
|
|||||||
instance = this;
|
instance = this;
|
||||||
|
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
Miscellaneous.setDisplayLanguage(this);
|
||||||
setContentView(R.layout.activity_volume_calibration);
|
setContentView(R.layout.activity_volume_calibration);
|
||||||
|
|
||||||
tvCurrentVolume = (TextView)findViewById(R.id.tvCurrentVolume);
|
tvCurrentVolume = (TextView)findViewById(R.id.tvCurrentVolume);
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
<item name="6">ru</item>
|
<item name="6">ru</item>
|
||||||
<item name="7">fr</item>
|
<item name="7">fr</item>
|
||||||
<item name="8">pl</item>
|
<item name="8">pl</item>
|
||||||
<item name="9">zh_rCN</item>
|
<item name="9">zh_CN</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="tabsPlacementOptions">
|
<string-array name="tabsPlacementOptions">
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
* Fixed: [variable-name] was incorrectly replaced with an ] at the end
|
* Fixed: [variable-name] was incorrectly replaced with an ] at the end
|
||||||
|
* Fixed: Set custom language
|
||||||
|
* Fixed: Special characters in making phone call action were not encoded
|
||||||
* Added: Chinese translation (simplified)
|
* Added: Chinese translation (simplified)
|
Loading…
Reference in New Issue
Block a user