add new debug build so two tusky versions can be run on the same device
This commit is contained in:
parent
7fc4ad7528
commit
2899114f66
17 changed files with 28 additions and 4 deletions
|
@ -145,7 +145,7 @@ public class LoginActivity extends AppCompatActivity {
|
|||
|
||||
private String getOauthRedirectUri() {
|
||||
String scheme = getString(R.string.oauth_scheme);
|
||||
String host = getString(R.string.oauth_redirect_host);
|
||||
String host = BuildConfig.APPLICATION_ID;
|
||||
return scheme + "://" + host + "/";
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ package com.keylesspalace.tusky;
|
|||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.res.Configuration;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
|
@ -371,6 +372,16 @@ public class MainActivity extends BaseActivity implements ActionButtonActivity {
|
|||
return false;
|
||||
})
|
||||
.build();
|
||||
|
||||
if(BuildConfig.DEBUG) {
|
||||
IDrawerItem debugItem = new SecondaryDrawerItem()
|
||||
.withIdentifier(1337)
|
||||
.withName("debug")
|
||||
.withDisabledTextColor(Color.GREEN)
|
||||
.withSelectable(false)
|
||||
.withEnabled(false);
|
||||
drawer.addItem(debugItem);
|
||||
}
|
||||
}
|
||||
|
||||
private void logout() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue